English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML tag <basefont> is used to set the default font size of the document. <font> can be used to change the font size relative to the default font size.
Stop using this tag!
Specify the default color and size of text on the page:
<head> <basefont color="red" size="5" /> </head> <body> <h1>This is a heading</h/h1> <p>This is a paragraph.</p>/p> </body>Test it out ‹/›
IEFirefoxOperaChromeSafari
Only IE 9 and earlier versions of IE browsers support the <basefont> tag. It is recommended to avoid using this tag.
HTML5 The <basefont> element is deprecated.
No HTML 4.01 In
The <basefont> tag defines the default color, size, and font for all text in the document.
Tip:Use CSS to specify the default color, size, and font of text in the document.
HTML5 A etiqueta <basefont> não é suportada, HTML 4.01 Etiqueta <basefont> descontinuada.
Atributo | Valor | Descrição |
---|---|---|
color | color | HTML5 Não suportado. HTML 4.01 Descontinuado. Define a cor padrão do texto do documento. |
face | font_family | HTML5 Não suportado. HTML 4.01 Descontinuado. Define o tamanho padrão da fonte do texto do documento. |
size | number | HTML5 Não suportado. HTML 4.01 Descontinuado. Define o tamanho padrão do texto do documento. |
No HTML 4.01 Neste atributo, a etiqueta <basefont> suporta os seguintes atributos padrão:
Atributo | Valor | Descrição |
---|---|---|
class | classname | definem o nome da classe do elemento |
dir | rtl ltr | definem a direção do texto no conteúdo do elemento |
id | id | definem o id único do elemento |
lang | language_code | definem o código de idioma do conteúdo do elemento |
style | style_definition | definem estilos inline do elemento |
title | text | definem informações adicionais do elemento |
Para uma descrição completa, acesseAtributos padrão.
No HTML 4.01 onde a etiqueta <basefont> não suporta nenhum atributo de evento.
Para uma descrição completa, acesseAtributos de evento.