:lang

Term side of the Card
Topic: Pseudo Classes
Unit title: :lang
Categories: Pseudo-class
Explanation side of the Card

Explanation: The pseudo-class that applies styles to elements based on the language of the content, as specified by the `lang` attribute. It helps in adapting styles for different languages, like adjusting font styles or text directions for better readability.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 3.1
Availability: