Senior LevelHTML & Semantic Web
How do Schema.org Microdata annotations differ from JSON-LD?
❓ Interview Prompt: Explain HTML Microdata attributes (itemscope, itemtype, itemprop) vs JSON-LD, and search engine processing.
While JSON-LD embeds structured data in a separate '<script>' block, Microdata annotates existing HTML elements directly using attributes:
•
'itemscope': Declares a new structured item.
•
'itemtype="https://schema.org/Event"': Specifies Schema.org vocabulary.
•
'itemprop="name"': Assigns property keys to text content.
Code Implementation Example
html
<div itemscope itemtype="https://schema.org/Event">
<h2 itemprop="name">Web Dev Summit 2026</h2>
<p itemprop="startDate" content="2026-11-01">Nov 1, 2026</p>
</div>💡Annotating HTML elements with Schema.org Microdata attributes.
🎯 Interview Key Takeaway
Use Microdata attributes (itemscope, itemprop) to annotate existing inline HTML text content directly for search engines.
#Microdata#Schema.org#SEO#Senior
Back to all HTML & Semantic Web Questions→