lang attribute

noun

say it: “LANG AT-ri-byoot” /læŋ ˈætrɪbjuːt/

An attribute, usually on the html element, that says what human language the page is written in, such as en for English or es for Spanish.

What is lang attribute?

lang attribute — The attribute that declares the human language of an element's content.

<html lang="en">

In a sentence

  • “Because the page's lang attribute says es, the screen reader reads the menu in a Spanish voice.”

Level: Journeyman · More HTML terms at this level

Updated