HTML font change setting face

 The syntax used by HTML to set the text font is face, which is similar to the font-family in CSS. The font set through HTML face here must be the font of the user’s browser before it can be displayed normally. At that time, it is better to use some common fonts as much as possible. The following examples are for your reference.


HTML face common font table
Font descriptionRendering effect
<font face="serif">serif font</font>serif font
<font face="sans-serif">sans-serif font</font>sans-serif font
<font face="cursive">cursive 字型</font>cursive font
<font face="fantasy">fantasy font</font>fantasy font
<font face="monospace">monospace 字型</font>monospace font
<font face="Microsoft regular bold font">Microsoft regular bold font</font>Microsoft positive bold font
<font face="标楷体">Biao Kai font type</font>Standard italics font
<font face="XinXinMingFont">NewXinMingFont</font>New detailed font
In the above table, serif, sans-serif, cursive, fantasy, monospace, etc. are called general fonts, while Microsoft regular bold, standard regular and new detailed fonts are all special fonts. Designers need to consider users when using these special fonts. Whether your browser can display correctly, a better way is to use the CSS font-family font design method, and set a variety of different fonts, including common fonts, so that the browser can filter out the fonts that can be displayed correctly. And HTML5 does not support face attributes, designers should try to use CSS as the main design method.

Post a Comment

0 Comments