View video tutorial

HTML <data> Tag


The <data> tag is used to add a machine-readable translation.

HTML <data> Tag

The <data> HTML element links a piece of content to a machine-readable translation.

If the content is time or date related, the <time> element must be used.

Element Attributes

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

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


    <li><data value="400">Mini Pack</data></li>
    <li><data value="401">Combo Pack</data></li>
    <li><data value="402">Mega Pack</data></li>
Try it Now »

Click on the "Try it Now" button to see how it works.