Interview Question

What are microdata in HTML?

Microdata labels HTML content with structured meaning.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Microdata adds machine-readable facts directly to HTML elements. • It uses attributes such as `itemscope`, `itemtype`, and `itemprop`. • It can describe products, people, events, and more. • JSON-LD is another common structured-data format.

💡 Simple Example

<div itemscope itemtype="https://schema.org/Person"><span itemprop="name">Maya</span></div>

⚡ Quick Revision

Microdata labels HTML content with structured meaning.