CSS :lang Selector
Select and style every <p> element with a lang attribute value equal to "it" (Italian):
Try it yourself »
Definition and Usage
The :lang() selector is used to select elements with a lang attribute with the specified value.
Note: The lang attribute value is most often a two-letter language code, like lang="fr" (for French), or two language codes combined, like lang="fr-ca" (for Canadian French).
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
Thank You For Helping Us!
Your message has been sent to W3Schools.