CSS lang pseudoclass
Notes:
CSS - lang pseudo class (selector):
Syntax of lang pseudo class selector:
selector : lang(ISO language code)
{
declaration list;
}
It helps us to select any html element targeted by the selector, if it has the lang attribute value set to the specified language code.
Search for ISO language code list:
ar Arabic
en English
hi Hindi
it Italian
ja Japanese
fr French
Ex:
p : lang(en)
{
border : 2px dotted blue;
}
It selects any p element, if its lang attribute value is set to en.
ISO : International Organization for Standardization
Interview Questions: