tag is used to set the text font, size and color. The properties include color, face and size. This tag has been replaced by CSS, which is recommended to provide more flexible and controllable text styling.
## tag in HTML
The tag is used to set the font, size, and color of text.
Properties:
Usage:
<code class="html"><font color="red" face="Arial" size="5">这是一段红色 Arial 文本,字体大小为 5</font></code>
Note: The
tag is deprecated because it has been replaced by CSS.
tags:
<code class="html"><p style="color: red; font-family: Arial; font-size: 5;">这是一段红色 Arial 文本,字体大小为 5</p></code>
Example:
<code class="html"><font color="blue" face="Arial" size="3">这是一种蓝色 Arial 文本,字体大小为 3</font></code>
<code class="html"><font color="green" size="+2">这是一段绿色文本,字体大小增加了 2</font></code>
The above is the detailed content of How to use font tag in html. For more information, please follow other related articles on the PHP Chinese website!