Breaking

Wednesday, May 1, 2019

HTML basefont Tag.

Example

Specify a default text-color and font-size for text on page:
<head>
<basefont color="red" size="5">
</head>

<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
Try it Yourself »

Definition and Usage

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.

Browser Support

Element
<basefont>Not supportedNot supportedNot supportedNot supportedNot supported
Note: The <basefont> tag is supported in Internet Explorer 9, and earlier versions.

Differences Between HTML 4.01 and HTML5

The <basefont> tag is not supported in HTML5.

Compatibility Notes

In our CSS tutorial you can find more information about CSS text color and CSS fonts.

Optional Attributes

AttributeValueDescription
colorcolorNot supported in HTML5.
Specifies the default color for text in a document
facefont_familyNot supported in HTML5.
Specifies the default font for text in a document
sizenumberNot supported in HTML5.
Specifies the default size of text in a document

No comments:

Post a Comment