CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: "font-size" CSS property

The "font-size" CSS Property

This property specifies the size of the font (more specifically the desired height of glyphs from the font).

Values for "font-size"
CSS LevelValue
CSS Fonts Level 4"<absolute-size> | <relative-size> | <length-percentage [0,∞]> | math", where <absolute-size> = "xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large", and <relative-size> = "larger | smaller"

Syntax Notes for "font-size"

  • Absolute sizes include: xx-small, x-small, small, medium, large, x-large, and xx-large
  • Relative sizes include: larger and smaller


  • Use of percentage values, or values in 'em's, leads to more robust and cascadable style sheets.

Recommended Links

Accessibility Information & Tips

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem