Complete CSS Selector Reference
Select and style every <p> element with a lang attribute value that starts with "it":
The :lang() selector is used to select elements with the lang attribute starting with a specified value.
Note: The value has to be a whole word, either alone, like lang="en", or followed by a hyphen( - ), like lang="en-us".
![]()
The :lang() selector is supported in all major browsers.
Note: For :lang() to work in IE8, a <!DOCTYPE> must be declared.
Complete CSS Selector Reference
Your message has been sent to W3Schools.