Table of Contents

HTML - language (lang|xml:lang) attribute

About

The lang attribute can specified:

Namespace

No

In no namespace, the language attribute specifies the primary language for the element's contents and for any of the element's attributes that contain text.

Its value must be:

The lang attribute is a global attributes.

Xml

The lang attribute is also defined in the XML namespace.

The lang attribute in the XML namespace xml:lang may be used:

The following specifications allow lang attributes in the XML namespace to be specified on their elements).

Documentation / Reference