---
id: "lang-attr"
kind: "web-feature"
canonical: "https://timetostable.com/feature/lang-attr"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# lang (`lang-attr`)

The lang global HTML attribute defines the language of an element. It's used by assistive technology to correctly read the content, translation tools to select the origin language, and other applications.

- **Group**: other
- **Baseline**: Widely Available
- **Newly Available Date**: 2015-07-29
- **Widely Available Date**: 2018-01-29
- **Specification**: https://html.spec.whatwg.org/multipage/dom.html#attr-lang
- **Constituent BCD keys**: 2

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 1 | 2004-11-09 |
| Chrome | 1 | 2008-12-11 |
| Safari | ≤4 | 2009-06-08 |
| Safari on iOS | ≤3.2 | 2010-04-03 |
| Firefox for Android | 4 | 2011-03-29 |
| Chrome Android | 18 | 2012-06-27 |
| Edge | 12 | 2015-07-29 |

