lang function

Attribute<GlobalHTMLAttribute> lang(
  1. String value
)

Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one “language tag” (made of hyphen-separated “language subtags”) in the format defined in Tags for Identifying Languages (BCP47). xml:lang has priority over it.

Implementation

Attribute<GlobalHTMLAttribute> lang(String value) {
  return Attribute('lang', value);
}