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 numbers in the table specifies the first browser version that fully supports the selector.
Note: For :lang() to work in IE8, a <!DOCTYPE> must be declared.
Thank You For Helping Us!
Your message has been sent to W3Schools.