DEV Community

Cover image for HTML tags | data
Carlos Espada
Carlos Espada

Posted on • Updated on

HTML tags | data

It is used to provide a machine-readable translation of a certain content, for example a price or code in a list of products.

If the content is related to a time or a date, use <time> instead.

The value attribute specifies the translation of the content that will be machine readable.

  • Type: inline
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Oldest comments (0)