html
  1. html-data-tag

HTML <data> Tag

  • The <data> tag in HTML is used to contain machine-readable data within a document.
  • It's a way to provide extra information that can be easily processed by machines while remaining hidden from regular users.

<p>More than <data value="40">40</data> courses are available on Additionalsheet.</p>
Try Playground
  • The value attribute holds the actual data, which can be used by scripts or applications for calculations, comparisons, or other operations.
  • The tag is particularly useful for associating data that needs to be both visible and machine-readable within the HTML document, ensuring that the content is understandable by both human readers and machines.
Published on: