Skip to content

CSS Selectors

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 language de-CH

Inherited language

The language is inherited from the parent element. The inner div is matched because the parent element has thelang attribute set to de.