Search within TutorialsPark

CSS Pseudo Class Selector :lang()


Selects elements based on the value of lang attribute


Definition and Notes.

1. CSS Pseudo Selector :lang selects and styles elements based on their language specified by their language property.

2. Eg: p:lang(fr) selects elements with attribute lang="fr".


Pattern:

CSS :lang(language)Pseudo Class selector. internetexplorer safari firefox opera chrome

View in Splitscreen»

Code-Editor:

Note:W3C recommends to use language codes from RFC 3066 to ensure standard.


Related Examples.