HTML <data>
query_builder | Christopher PisaniThe valued content of the HTML element <data> is in it's attribute 'value', which holds machine-readable code to be processed and displays text for uses for easy readability.
In the below example, will make it easier to understand the concept of the element.
The following example displays product names but also associates each name with a product number.
<p>New Products</p>
<ul>
<li><data value="398">Mini Ketchup</data></li>
<li><data value="399">Jumbo Ketchup</data></li>
<li><data value="400">Mega Jumbo Ketchup</data></li>
</ul>
Available Attributes
Attribute | Values | Functionality |
---|---|---|
value | text | machine readable content |