lang()
Pseudo-Class
The lang()
pseudo-class is used to target elements based on the language of the text content. It allows you to select elements that have a specific language attribute or that contain text in a specific language.
The Function
The lang()
function is defined as LANG('<language-code>')
or LANGUAGE('<language-code>')
.
- SQL
- CSS
SELECT * FROM DOM WHERE
TAG('p') AND LANG('en')
p:lang(en) {
/* Styles */
}