HTML <data> Tag
Example
<p>Product List</p>
<ul>
<li><data value="001">Book</data></li>
<li><data value="002">Pen</data></li>
<li><data value="003">Pencil</data></li>
</ul>
Meaning
The <data> element is used provide a machine-readable translation to a content.
Use <time> tag if the content is time or date related.
Version: HTML5
Standard Syntax
<data value="machine-readable">...</data>
Browser Support
Status
Attributes
Attribute | Value | Description |
---|---|---|
value | machine-readable | Specifies the machine-readable translation of the content of the element. |
Global Attributes
<data> element also supports the Global Attributes in HTML.
Event Attributes
<data> element also supports the Event Attributes in HTML.