Front-end learning--CSS--font classification

Source: Internet
Author: User

Divide the font into 5 categories on your Web page:

    1. Serif (serif font)
    2. Sans-serif (non-liner font)
    3. Monospace (equal width font)
    4. Cursive (cursive font)
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.