Syntax and parsingIan HicksonCSS 3 ModuleW3C SelectorsNextSyntax and parsingPreviousSyntax and parsingTest #234 of 272TestingSyntax and parsingID155bDate27-november-2001Revision1.0

This line should have a green background.

p { background: lime; }
.two\ words { background: red; }
/* the "." and "~=" forms match on a space separated list of words.
In such a list, a word containing a space can never match, since it
would by definition be two words. */
<p xmlns="http://www.w3.org/1999/xhtml" class="two words">This line should have a green background.</p>