O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Keywords

Keywords are defined on a per-property basis and have a meaning specific only to a given property. For example, normal has totally unique meanings for the properties font-variant and letter-spacing. Keywords, like property names, are not case-sensitive. A special case is the keyword inherit, which is allowed on all properties and always has the same meaning (get the associated property’s value from the element’s parent). There is a second special universal keyword, initial, which is meant to represent the initial or default value for a given property. Thus, declaring font-family: initial would return the browser’s preferences-based default font family. (Times, for most people.) The status and application of initial is unclear as of this writing and may be unreliable.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required