Skip to main content

html-tags.com

<data>

Pairs human-readable content with a machine-readable value.

Baseline: Widely available · Inline text semantics

When to use it

For SKUs, quantities, scores, IDs — anything a script or crawler should read precisely while humans read prose.

When not to

For dates, times, and durations use time instead — it's the specialized form.

Key attributes

value
the machine-readable form (required)

Example

Add 400 g rye flour.

<p>Add <data value='400'>400 g</data> rye flour.</p>
Rendered live above, source below.

Authoritative references