Basic Font Properties
Font family: the font-family property
- serif
- Serif fonts represent the formal text style for a script. This often means but is not limited to glyphs that have finishing strokes, flared or tapering ends, or have actual serifed endings (including slab serifs).
- sans-serif
- Glyphs in sans-serif fonts, as the term is used in CSS, are generally low contrast (vertical and horizontal stems have the close to the same thickness) and have stroke endings that are plain -- without any flaring, cross stroke, or other ornamentation.
- cursive
- Glyphs in cursive fonts generally use a more informal script style, and the result looks more like handwritten pen or brush writing than printed letterwork.
- fantasy
- Fantasy fonts are primarily decorative or expressive fonts that contain playful representations of characters.
- monospace
- The sole criterion of a monospace font is that all glyphs have the same fixed width.
Font weight: the font-weight property
Font width: the font-stretch property
Font style: the font-style property
Font size: the font-size property
- absolute-size
-
- relative-size
-
For example, if the parent element has a font size of ‘medium’, a value of ‘larger’ will make the font size of the current element be ‘large’.
If the parent element's size is not close to a table entry, the user agent is free to interpolate between table entries or round off to the closest one. The user agent may have to extrapolate table values if the numerical value goes beyond the keywords.
Relative sizing: the font-size-adjust property
bb
Shorthand font property: the font property
The font used for labeling small controls.