Last Updated on April 26, 2023 by Roshan Parihar
HTML data tag is used to show machine readable content inside web pages.
This is very useful when you want to process your data using some script.
Syntax
1 |
<data value="some numeric value here">Enter some text here for data</data> |
1 2 3 4 5 6 |
<ul> <li><data value="2001">Two thousand one</data></li> <li><data value="2002">Two thousand two</data></li> <li><data value="2003">Two thousand three</data></li> <li><data value="2004">Two thousand fore</data></li> </ul> |
Output
- Two thousand one
- Two thousand two
- Two thousand three
- Two thousand fore
Resources and References of HTML data tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github