value attribute | value property

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

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax

HTML<element value="p" ... >

 

Property values

Type: String

A string in machine-readable format that represents the contents of the data element.

Standards information

Examples


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

See also

data

 

 

Show: