CSS font-size property

Usage

Sets the font size.

Values

  • xx-small
  • x-small
  • small
  • medium
  • large
  • x-large
  • xx-large
  • smaller
  • larger
  • [length]
  • [percentage]

Example

Code:

h2 {
  font-size: 1.5em;
}