Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

font-size

Definition

The font-size property specifies the size of the font. It's best to use relative sizes for fonts such as em or a percentage, so that users can enlarge the font size through their Web browsers.

Example

  1. body {font-size: 1em}
  2. h1 {font-size: 160%}

Characteristics

Possible values

  • One of the following keywords: xx-small, x-small, small, medium, large, x-large or xx-large.
  • One of the following keywords: larger or smaller.
  • Specific font size length.
  • Specific font size percentage.
  • inherit
    Use the same computed value as the parent element for this property.

Default value

medium

Applies to

All elements

Inherited

Yes

See also