text"."/> text".">
Home >Web Front-end >Front-end Q&A >What does font mean in html5
In HTML5, font means "font" and is a font tag element that can specify the font, font size, and font color of the text; the syntax "text".
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
In HTML5, font means "font".
Specifies the font, font size, and font color of the text.
Attribute | Value | Description |
---|---|---|
color |
|
Deprecated. Please use style to replace it. Specifies the color of the text. |
face | font_family |
Deprecated. Please use style to replace it. Specifies the font of the text. |
size | number |
Deprecated. Please use style to replace it. Specifies the size of the text. |
Example:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p><font size="3" color="red">这是一些文本!</font></p> <p><font size="2" color="blue">这是一些文本!</font></p> <p><font face="verdana" color="green">这是一些文本!</font></p> </body> </html>
Related recommendations:《html Video tutorial》
The above is the detailed content of What does font mean in html5. For more information, please follow other related articles on the PHP Chinese website!