CSS Portal

HTML <data> Tag

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
<data>
HTML TagThis tag is supported by all modern browsers.
Updated 26th December 2025

Description

The <data> HTML element is used to associate a machine-readable value with content that is readable by humans. This allows you to provide information in a way that both users and programs (such as search engines, scripts, or assistive technologies) can understand. Essentially, it acts as a bridge between human-friendly text and data that can be programmatically interpreted.

For example, if you display a measurement, price, or date on a webpage, you can use the <data> element to include the actual numeric or structured value while showing a more readable form to users. The element ensures that the information is semantically correct and helps improve accessibility and data parsing.

The <data> element is typically used inline with text, and it can contain any flow content, such as text or other inline elements. It is particularly useful for embedding structured data directly within HTML content without altering the visual presentation.

A key benefit of using <data> is that it separates the human-readable content from the underlying value, making it easier for scripts, automated tools, or APIs to extract and utilize the information accurately.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
low content, phrasing content, palpable content.
Start/End Tags
Start tag: required, End tag: required

Example

<p>New Products</p>
<ul>
<li><data value="398">Mini Ketchup</data></li>
<li><data value="399">Jumbo Ketchup</data></li>
<li><data value="400">Mega Jumbo Ketchup</data></li>
</ul>
Open in editor

Attributes

value
This attribute specifies the machine-readable translation of the content of the element.

Global Attributes

The <data> tag also supports the Global Attributes in HTML5

Event Attributes

None

Browser Support

The following information will show you the current browser support for the HTML <data> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee