CSS Pseudo-class :lang( ) Selector
What is a CSS Pseudo-class :lang( ) Selector?
- The :lang pseudo-class selector specifies elements that match the specified language. The language value is enclosed in parentheses immediately after :lang. For a match to occur, the specified language must equal the element's language or be a hyphen-separated sub string of the language. In the following example, the color property will be set to red for any <p> element that matches the language. The style is NOT applied to the third <p> element.