The <data> Element
<data> associates a machine-readable value with human-readable text. Use value= for the machine part — screen readers, web scrapers, and browser APIs can access it.
Pricing with <data>
Pro Plan
¥2,999 / year that's just ¥0.25 per day!
Save ¥1,200 vs. monthly billing.
Inventory Status
| Product | Stock | Status |
|---|---|---|
| Headphones | 42 units | In stock |
| Smart Speaker | Sold out | Out of stock |
| Charger | 7 left | Low stock |
<data> vs <time>
| Element | Use when |
|---|---|
<data value="..."> | Arbitrary value (rating, price, stock status) |
<time datetime="..."> | Date, time, duration, or timezone |
<data> fills a gap: you need machine-readable numbers or codes that aren't dates or times. It's inline — for block-level machine-readable content, use <meta itemprop=> or structured data instead.