In HTML, the function of the
The role of the
Specify the default font color and font size on the page:
<head> <basefont color="red" size="5" /> </head> <body> <h1>This is a header</h1> <p>This is a paragraph</p> </body>
Which browsers support the
Only Internet Explorer supports the
This element can only be used within the body element or head element. BASEFONT should appear before any display text in the document body.
This element is available in HTML in Internet Explorer 3.0 and above, and in script in Internet Explorer 4.0 and above.
This element does not change the content display format.
This element does not require a closing tag.
Element sample code
The following example uses the BASEFONT element to set the base font size, and the FONT element is used to temporarily override this setting.
<!-- No BASEFONT size specified yet. --> <BASEFONT SIZE=4> Set the BASEFONT size. <FONT SIZE=2> Temporarily override the BASEFONT size.</FONT> <!-- Resume the BASEFONT size. -->
The above is the detailed content of Detailed explanation of the definition and use of