CSS Fonts Property (font)

Source: Internet
Author: User
Font Name Property (font-family) This property sets the font name, such as Arial, Tahoma, Courier, and so on. The example is as follows:. S1 {font-family:arial} Font Size property (font-size) This property can set the font size. There are several ways to set the font size, and the most common are pt and px (pixel). The example is as follows:. s2 {font-size:16pt} font style attribute (Font-style) This property has three values: normal, italic, oblique. Normal is the default value, italic, and oblique are all italicized displays. Examples are as follows:. S1 {font-sytle:italic} font bias property (font-weight) This property is commonly used for normal and bold,normal are the default values. The example is as follows: <p style = "Font-weight:bold" > The shade Attribute (font-weight) value of this text font is bold. <p> Font variable properties (font-variant) This property has two values, and normal and small-caps,normal are the default values. Small-caps represents a small uppercase font. The examples are as follows:. S1 {font-variant:small-caps} Font Property (font) This property is a quick and comprehensive way of writing various font properties. This property can be combined with attributes such as font style attributes (font-style), font variable properties (font-variant), Font bias properties (font-weight), Font size properties (font-size), and so on. The example is as follows:. s1 {font:italic normal bold 11pt arial} Font Color (color) font color is represented by the colour attribute in CSS. See CSS common Text properties.

CSS Fonts Property (font)

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.