Data & Microdata
All HTML topics∙ Chapter 35
Data & Microdata
Use data-* attributes to attach custom info to elements for JavaScript. Microdata adds extra meaning for things like people/products.
📝 Edit Code
👁 Live Preview
💡 Use
data-* for your app logic. Microdata is optional and often handled by SEO tooling.