Divide the font into 5 categories on your Web page:
- Serif (serif font)
- Sans-serif (non-liner font)
- Monospace (equal width font)
- Cursive (cursive font)
- Fantasy (Unreal Font)
Fonts can be set to these large categories, and when set to a large category, the browser automatically selects the specified font and applies the style.
A large classification of the font is typically specified as the last font in font-family.
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title></title> </Head> <Body> <!--[email protected] Time: 2017-04-12 Description: Serif fonts - <Pstyle= "Font-size:20px;font-family:serif;">the sunrise, and the day into the interest. To dig well and drink, to plough and eat. Dili to me! IHK</P> <!--[email protected] Time: 2017-04-12 Description: Non-liner font - <Pstyle= "Font-size:20px;font-family:sans-serif;">the sunrise, and the day into the interest. To dig well and drink, to plough and eat. Dili to me! IHK</P> <!--[email protected] Time: 2017-04-12 Description: Cursive font - <Pstyle= "font-size:20px;font-family:cursive;">the sunrise, and the day into the interest. To dig well and drink, to plough and eat. Dili to me! IHK</P> <!--[email protected] Time: 2017-04-12 Description: Unreal font - <Pstyle= "Font-size:20px;font-family:fantasy;">the sunrise, and the day into the interest. To dig well and drink, to plough and eat. Dili to me! IHK</P> <!--[email protected] Time: 2017-04-12 Description: Equal width font - <Pstyle= "Font-size:20px;font-family:monospace;">the sunrise, and the day into the interest. To dig well and drink, to plough and eat. Dili to me! IHK</P> </Body></HTML>
Effect:
The difference between Chinese and English is very obvious.
Front-end learning--CSS--font classification