--- title: slug: Web/HTML/Element/data translation_of: Web/HTML/Element/data ---
{{HTMLRef}}

The HTML <data> element links a given content with a machine-readable translation. If the content is time- or date-related, the {{HTMLElement("time")}} element must be used.

{{EmbedInteractiveExample("pages/tabbed/data.html", "tabbed-standard")}}
Content categories Flow content, phrasing content, palpable content.
Permitted content Phrasing content.
Tag omission {{no_tag_omission}}
Permitted parents Any element that accepts phrasing content.
DOM interface {{domxref("HTMLDataElement")}}

Attributes

This element's attributes include the global attributes.

{{htmlattrdef("value")}}
This attribute specifies the machine-readable translation of the content of the element.

Example

The following example displays product names but also associates each name with a product number.

<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>

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'semantics.html#the-data-element', '<data>')}} {{Spec2('HTML WHATWG')}} No change from {{SpecName('HTML5 W3C')}}
{{SpecName('HTML5 W3C', 'text-level-semantics.html#the-data-element', '<data>')}} {{Spec2('HTML5 W3C')}} Initial definition.

Browser compatibility

{{Compat("html.elements.data")}}

See also