Skip to: content, navigation

Keywords

Many CSS property values can be specified as keywords. A keyword is an identifier, and it mustn’t be surrounded by quotation marks. So the correct syntax is background-color: yellow;, whereas background-color: "yellow"; is an error.

See the definition of each property for information about which keywords, if any, it allows.

User-contributed notes

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

Search