lang property

String get lang
inherited

The HTMLElement.lang property gets or sets the base language of an element's attribute values and text content.

The language code returned by this property is defined in 5646, "Tags for Identifying Languages (also known as BCP 47)". Common examples include "en" for English, "ja" for Japanese, "es" for Spanish and so on. The default value of this attribute is unknown. Note that this attribute, though valid at the individual element level described here, is most often specified for the root element of the document.

This also only works with the lang attribute and not with xml:lang.

Implementation

external String get lang;
set lang (String value)
inherited

Implementation

external set lang(String value);