Home > Article > Web Front-end > How to use html basefont tag
html The basefont tag is used to define the base font. If you want to change the font size, just follow or - number. This tag can define the default font color, font size and font series for all text in the document.
#What does the basefont tag mean? How to use html basefont tag?
Function: Define the base font. If you want to change the font size, just add the or - number directly after it.
Description: This tag can define the default font color, font size and font family for all text in the document.
Note: In HTML 4.01, the basefont element is deprecated; in XHTML 1.0 Strict DTD, the basefont element is not supported.
html basefont tag usage example
<html> <head> <basefont color="red" size="5" /> </head> <body> <h1>This is a header</h1> <p>This is a paragraph</p> <p> 在 HTML 4.01 中,不赞成使用 basefont 元素;在 XHTML 1.0 Strict DTD 中,不支持 basefont 元素。 </p> </body> </html>
Effect output:
The above is the detailed content of How to use html basefont tag. For more information, please follow other related articles on the PHP Chinese website!