Easy Tutorial
❮ Func Minmax Pr Grid Auto Rows ❯

CSS :lang Selector

Complete CSS Selector Reference

Example

Styles for each <p> element with the lang attribute value equal to "it" (Italian):


Definition and Usage

The :lang selector adds styles to elements with the specified lang attribute starting value.

Note: The value is a whole word, either like lang="en" or using a hyphen (-) such as lang="en-us".


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Selector
:lang() 4.0 8.0 2.0 3.1 9.6

Note: :lang works in IE8, but you must declare <!DOCTYPE>.


Complete CSS Selector Reference

❮ Func Minmax Pr Grid Auto Rows ❯