HTML - HTML Microdata and Structured Data Markup
HTML Microdata and Structured Data Markup are techniques used to add extra meaning to webpage content so that search engines can clearly understand what the information on a page represents. Instead of only displaying text to users, structured data helps machines interpret the content accurately.
What is Structured Data
Structured data is a standardized format used to describe information on a webpage. It tells search engines whether content refers to a person, product, event, organization, article, review, or other specific type of information.
For example, when a webpage shows a recipe, structured data can specify:
-
Recipe name
-
Cooking time
-
Ingredients
-
Author
-
Ratings
This allows search engines to display rich results such as ratings, images, or event details directly in search results.
What is Microdata
Microdata is one method used to implement structured data directly inside HTML elements. It uses special attributes added to HTML tags to describe the meaning of content.
Important microdata attributes include:
itemscope
Defines a block of content as a specific item.
itemtype
Specifies the type of item using a vocabulary such as Schema.org.
itemprop
Defines properties or details of that item.
Example of Microdata
<div itemscope itemtype="https://schema.org/Person">
<h2 itemprop="name">Rahul Kumar</h2>
<p itemprop="jobTitle">Web Developer</p>
<p itemprop="email">[email protected]</p>
</div>
In this example:
-
The content represents a Person.
-
Name, job title, and email are clearly defined properties.
Schema.org Vocabulary
Structured data commonly uses the Schema.org vocabulary. It provides predefined categories such as:
-
Person
-
Product
-
Event
-
Organization
-
Article
-
Review
-
Recipe
Using standard vocabularies ensures search engines interpret the information correctly.
Benefits of Structured Data
Improves search engine understanding of webpage content.
Helps generate rich search results such as star ratings, FAQs, and event information.
Improves visibility and click-through rate in search results.
Supports voice search and AI assistants.
Other Structured Data Formats
Besides Microdata, structured data can also be implemented using:
-
JSON-LD (most recommended by search engines)
-
RDFa
JSON-LD is usually placed inside a script tag and keeps structured data separate from HTML content.
Example Using JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "ABC Institute",
"url": "https://example.com"
}
</script>
When to Use Structured Data
Structured data should be used when a webpage contains identifiable information such as products, courses, events, articles, or business details. It helps search engines present enhanced search listings and improves overall website discoverability.
In summary, HTML Microdata and Structured Data Markup make webpages smarter by adding meaning to content, enabling better communication between websites and search engines.