Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

<data>

Esta traducción está incompleta. Por favor, ayuda a traducir este artículo del inglés.

Resumen

El Elemento HTML <data> vincula un contenido dado con una traducción legible por una máquina. Si el contenido está relacionado con time- o date-, debe usarse el elemento <time>.

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

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
WHATWG 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

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

Etiquetas y colaboradores del documento

Etiquetas: 
 Colaboradores en esta página: raecillacastellana
 Última actualización por: raecillacastellana,