<data> tag in HTML
The <data> tag is used to links a given content with a machine-readable translation. This element provides both a machine-readable value for data processors, and a human-readable value for rendering in a browser.
Important Description
- The <data> tag used mainly with languages where reading occurs from right to left (Arabic).
- If the content is time- or date-related, the <time> element must be used instead.
- Open and close tag required of <data>.
Example of <data> tag
Result Look Like
New Products:
<data> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<data> |
Yes |
Yes |
Yes |
Not supported |
Yes |
Global Attributes
Attributes
Attribute |
Value |
Description |
value |
machine-readable format |
Specifies the machine-readable translation of the content of the element |