Specify a default text-color and font-size for text on page:
The <basefont> tag is not supported in HTML5. Use CSS instead.
The <basefont> tag specifies a default text-color, font-size, or font-family for all the text in a document.
Element | |||||
---|---|---|---|---|---|
<basefont> | Not supported | Not supported | Not supported | Not supported | Not supported |
Note: The <basefont> tag is supported in Internet Explorer 9, and earlier versions.
The <basefont> tag is not supported in HTML5.
CSS Example: Specify a default text-color for a page
CSS Example: Specify a default font-family for a page
CSS Example: Specify a default font-size for a page
In our CSS tutorial you can find more information about CSS text color and CSS fonts.
Attribute | Value | Description |
---|---|---|
color | color | Not supported in HTML5. Specifies the default color for text in a document |
face | font_family | Not supported in HTML5. Specifies the default font for text in a document |
size | number | Not supported in HTML5. Specifies the default size of text in a document |