CSS font styles

Source: Internet
Author: User
Tags italic font italic font style


Font style

font-family Setting the font name

Font-size setting the size of a font

Font-style Setting font style

Normal default value. The browser displays a standard font style.

The Italic browser displays an italic font style.

Oblique The browser will display a italic font style

Font-weight Setting the font weight

Normal default value. Defines the standard character.

The bold defines bold characters.

Bolder define more coarse characters

lighter define finer characters

100

200

300

400

500

600

700

800

900

defines the characters from thin to thick. 400 equals normal, while 700 is the same as bold.

Font sets all of the fonts properties in a declaration

The following properties can be set sequentially

Font-style

Font-weight

Font-size/line-height

font-family

Example

<p style= "font:italic bold 20px ' Microsoft Jas Black '; >








CSS font styles

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.