We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Terjemahan ini belum lengkap. Mohon bantu menerjemahkan artikel ini dari Bahasa Inggris.

Summary

The HTML <data> Element links a given content with a machine-readable translation. If the content is time- or date-related, the <time> must be used.

Attributes

This element includes the global attributes.

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 its UPC code.

<p>New Products</p>
<ul>
 <li><data value="3967381398">Mini Ketchup</data></li>
 <li><data value="3967381399">Jumbo Ketchup</data></li>
 <li><data value="3967381400">Mega Jumbo Ketchup</data></li>
</ul>

Specifications

Specification Status Comment
HTML Living Standard
The definition of '<data>' in that specification.
Living Standard No change from Recommendation
HTML5
The definition of '<data>' in that specification.
Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support 22.0 (22.0) bug 839371 No support No support No support
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support No support No support No support

See also

Tag Dokumen dan Kontributor

Kontributor untuk laman ini: winkyseptya
Terakhir diperbarui oleh: winkyseptya,