CSS 3 Module <== Test # ==>
W3C Selectors 9 of 153 of the static tests category
Testing Date Revision
Attribute value selectors (hyphen-separated attributes) (ID #8) 2001-07-11 1.0

This paragraph should have green background because its language is "en-gb"

This address should also have green background because the language of the inner SPANs is not French.
p { background-color : red }
p[lang|="en"] { background-color : lime }
address { background-color : red }
address[lang="fi"] { background-color : lime }
span[lang|="fr"] { background-color : red }
<p lang="en-gb">This paragraph should have green background because its language is &quot;en-gb&quot;</p>
<address lang="fi">
<span lang="en-us">This address should also</span>
  <span lang="en-fr">have green background because the language of the inner SPANs
     is not French.</span>
</address>