<data>Baseline · Widely available
The <data> element links a given piece of content with a machine-readable translation.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Oct 24, 2017. Widely available since Apr 24, 2020.
Browser support
DesktopChrome
1–61Not supported
62+Supportedsince Oct 17, 2017
Current: 155Edge
12–13Not supported
14+Supportedsince Aug 2, 2016
Current: 154Firefox
1–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
18–61Not supported
62+Supportedsince Oct 24, 2017
Current: 155Firefox Android
4–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157Safari iOS
1–9.3Not supported
10+Supportedsince Sep 13, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: HTMLDataElement.
Feature detection
JS · check before using
const el = document.createElement("data");
if (!(el instanceof HTMLUnknownElement)) {
// <data> is supported
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (4). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLDataElement | 62 | 14 | 22 | 10 | 62 | 22 | 10 |
| HTMLDataElement.value | 62 | 14 | 22 | 10 | 62 | 22 | 10 |
| data | 62 | 14 | 22 | 10 | 62 | 22 | 10 |
| data.value | 62 | 14 | 22 | 10 | 62 | 22 | 10 |