Example Specify a default color and size for text on page: <head> <basefont color="red" size="5" /> ...
Example
Specify a default color and size for text on page:<head> <basefont color="red" size="5" /> </head> <body> <h1>This is a header</h1> <p>This is a paragraph</p> </body> |
Definition and Usage
The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.Browser Support
The <basefont> tag is only supported by Internet Explorer, and should be avoided!Differences Between HTML and XHTML
The basefont element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.Optional Attributes
DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.Attribute | Value | Description | DTD |
---|---|---|---|
color | rgb(x,x,x) #xxxxxx colorname | Deprecated. Use styles instead. Specifies the text color. | TF |
face | list_of_fontnames | Deprecated. Use styles instead. Specifies the font to use. | TF |
size | default_text_size (a number from 1 to 7) | Deprecated. Use styles instead. Font size for font elements. | TF |
Standard Attributes
id, class, title, style, dir, lang, xml:lang |