The HTMLdata element is used specifically to provide metadata using the value of the @value attribute [1]. As this attribute is intended to be machine-readable, a datatyped value may result.
Depending on the lexical form of the value of the @value attribute:
if the value has the lexical form of an xsd:integer, value is a literal with datatype xsd:integer
if the value has the lexical form of an xsd:float, value is a literal with datatype xsd:float
if the value has the lexical form of an xsd:double, value is a literal with datatype xsd:double
Otherwise, value is a Plain Literal without language or datatype.
The HTML
data
element is used specifically to provide metadata using the value of the@value
attribute [1]. As this attribute is intended to be machine-readable, a datatyped value may result.Depending on the lexical form of the value of the
@value
attribute:xsd:integer
, value is a literal with datatypexsd:integer
xsd:float
, value is a literal with datatypexsd:float
xsd:double
, value is a literal with datatypexsd:double
The follow markup:
would generate the following: