HTML and CSS Reference
In-Depth Information
Note that the behavior of this pseudo-class is similar to the language attribute
selector. The difference is that the :lang pseudo-class also matches elements if the
language is set on an ancestor element, or in some other way such as through the page
HTTP header or <meta> tag.
<body lang="fr">
The negation pseudo-class :not matches elements that are not targeted by the specified
p:not(.first) { font-weight: bold; }
This example rule selects paragraphs that are not using the first class.
<p class="first">Not bold</p>
The :not pseudo-class is supported in all major browsers, except IE8 and
earlier versions.
Search WWH ::

Custom Search