Language
About
The :lang()
pseudo-class matches elements based on the language of their content.
Element with lang attribute
The language is determined by the lang
attribute.
- Change the selector to only match the
div
with the languagede-CH
German
German (Switzerland)
English
French
Inherited language
The language is inherited from the parent element. The inner div
is matched because the parent element has the lang
attribute set to de
.
German