# 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
<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](https://www.ask-codey.com/glossary?category=html&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/lang-attribute
