Home >Web Front-end >HTML Tutorial >What does font tag mean?
What does the
font tag mean? [Recommended tutorial: HTML video tutorial]
html font tag syntax
Function: Specifies the text Font, font size, font color.
Note: Please use styles (instead of ) to define the font, font color, and font size of the text. Commonly used attributes of tags include: color (text color), size (text size), face (text font), etc.
Note: In HTML 4.01, the font element is deprecated. In XHTML 1.0 Strict DTD, the font element is not supported.
html font tag example
1), use font size to set the text size
2), use the html font tag face attribute to set the text font
3), use html font color to set text color
<html> <body> <h1><font face="verdana">verdana字体</font></h1> <p><font size="5" face="arial" color="red">arial字体</font></p> </body> </html>
The above is the detailed content of What does font tag mean?. For more information, please follow other related articles on the PHP Chinese website!