Description

Sets the font size of an element. Font-sizes can be specified by constants of xx-small, x-small, small, medium, large, x-large, xx-large or by units such as px, pt and em or percentages.
Browsers display font-sizes differently and many can override your settings. It is best to use values that can be resized by the browser and allow for this in your site design.

See Also

Live Example
Play with the code in the textarea below.

Values
xx-small, x-small, small, medium, large, x-large, xx-large and (px, em, pt, % ) values
Default value
medium
Introduced in CSS version
1
Applies to elements
All
Inherited
Yes
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versions51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties