data element | data object
Represents the element's contents and a machine-readable form of the contents in the value attribute.
![]() |
DOM Information
Inheritance Hierarchy
Node
Element
HTMLElement
data
Members
The data object has these types of members:
Properties
The data object has these properties.
| Property | Description |
|---|---|
|
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
Show:
