data element | data object

Represents the element's contents and a machine-readable form of the contents in the value attribute.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     data

Members

The data object has these types of members:

Properties

The data object has these properties.

PropertyDescription

value

The contents of the data element in machine-readable format.

 

Standards information

Examples


<p>Green <data value="12340987">t-shirts</data> on sale today!

See also

Node

 

 

Show: