این ترجمه ناقص است. لطفاً در ترجمه این مقاله از انگلیسی کمک کنید.

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

Content categories Flow content, phrasing content, palpable content.
Permitted content Phrasing content.
Tag omission None, both the starting and ending tag are mandatory.
Permitted parents Any element that accepts phrasing content.
DOM interface HTMLDataElement

Attributes

This element's attributes include 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 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
HTML Living Standard
The definition of '<data>' in that specification.
Living Standard No change from HTML5
HTML5
The definition of '<data>' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 62Edge Full support YesFirefox Full support 22IE No support NoOpera Full support 49Safari No support NoWebView Android Full support 62Chrome Android Full support 62Edge Mobile Full support YesFirefox Android Full support 22Opera Android Full support 49Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support

See also

Document Tags and Contributors

Contributors to this page: akbarjafari
Last updated by: akbarjafari,