Font-related properties
The following table has font related properties:
Property | Description |
---|---|
font-family | Specifies the font family |
font-size | Specifies the size of the font |
font-style | Specifies the style for a font(normal or italic, etc.) |
font-variant | Specifies whether to use a small-caps font (normal or smallcaps) |
font-weight | Specifies the weight for a font (the thickness of the characters, for example, normal or bold or bolder or lighter or use a <number 100-900> |
font | Shorthand property to set fonts |
The format for the font property value is as follows:
font: <font-style> <font-variant> <font-weight> <font-size> <font-family>
Home
HTML CSS Book
CSS
HTML CSS Book
CSS
Font:
- Font-related properties
- Selecting a Font with font-family
- Setting the Font Size
- Setting the Font Style and Weight
- Using Web Fonts
Related: