📅  最后修改于: 2020-11-04 00:53:38             🧑  作者: Mango
HTML标记用于定义其中包含的文本的字体样式。它定义字体大小,颜色和外观,或HTML文档中的文本。
注意:不要使用HTML5中已弃用的HTML标记,因此可以使用CSS属性来更改字体大小,字体,颜色等。
Content....
以下是有关HTML标签的一些规范
Display | Inline |
Start tag/End tag | Both Start and End tag |
Usage | Font Style |
Font Tag
Example of font tag
This is normal text without any font styling
Text with normal size and default face
Text with Increased size and default face
Text with Changed face
输出:
使用CSS属性可以达到相同的效果,如下例所示:
Font Tag
Change font using CSS
This is normal text without any font styling
Text with normal size and default face
Text with Increased size and default face
Text with Changed face
输出:
Attribute | Value | Description |
---|---|---|
colod | rgb(X,X,X) #xxxxx color_name |
It specifies the color of the content. (Not Supported in HTML5) |
face | font_family | It specifies the typeface of the content. (Not Supported in HTML5) |
size | number | It specifies the size of the content. (Not Supported in HTML5) |
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |