Open In App
Related Articles

HTML <data> Tag

Improve Article
Save Article
Like Article

The <data> element gives an address to a given content with a machine-readable translator. This element provides a machine-readable value for the processors and a human-readable value that rendered in the browser.


<data value=""> Contents... </data>

Attributes: This tag accepts a single attribute as mentioned above and described below.

  • value: It contains a single machine-readable translation of the content.

Note: If the content is a date or time-related content, then use <time> element instead of the data element.


<!DOCTYPE html>
        <h2><data> Tag</h2>
<p>GeeksforGeeks Subject List:</p>
          <!-- data Tag starts here -->
             <li><data value="009">Data Structure</data></li>
             <li><data value="010">Algorithm</data></li>
             <li><data value="011">HTML</data></li>
             <li><data value="019">Operating System</data></li>
             <li><data value="110">Computer Network</data></li>
             <li><data value="111">DBMS</data></li>
          <!-- data Tag ends here -->


Supported Browsers: 

  • Google Chrome 62.0 and above
  • Edge 18.0 and above
  • Internet Explorer not supported
  • Apple Safari 10 and above
  • Firefox 22.0 and above
  • Opera 49.0 and above

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 19 Jul, 2022
Like Article
Save Article
Similar Reads
Complete Tutorials