: The DATA Element
Last updated: 2026-09-12
<data>The DATA Element
Associates visible text with a machine-readable value, e.g. a product name plus its price or code. The browser shows only the text; scripts can read value.
| Category | Text Content |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </data> tag |
| Status | Standard |
📝 Syntax
<data value="598">$598</data>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
value | The machine-readable value; the text is still shown as-is. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <data> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: For time-related values, prefer <time> over <data> for better semantics.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.