We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is Microdata?

By Page Coleman
Updated: May 17, 2024
Views: 6,190
Share

Microdata is an HTML-5 specification for adding machine-readable code to a document such as a web page, and the specification should not be confused with companies that are called microdata systems. All microdata is usually added to HTML tags that display information that is visible to human users. By adding information to already-used tags, a developer can label elements of page content so that search engines and other applications can more easily categorize the content. These labels describe the type of content, such as various aspects of products, organizations, or people information. The specification does not describe the presentation, or appearance, of the content.

Document content, such as an organization’s name, address, phone number, and website URL, is labeled using groups, known as items, of name-value pairs. Within the HTML-5 code, the developer will notate content as an item, and then add item properties such as strings, URLs, dates, and time to that item. The and

tags are frequently the base tags to which the microdata information is added. Just as HTML can be nested, microdata can also be nested. A starting set of vocabularies for the item properties is available at the Data Vocabulary organization website.

The following is an example of using microdata to describe a product:

<div itemscope itemtype="http://www.website.com/product">
     <p>Product Name: <span itemprop = "name">Banana</span></p>
     <p>Food Group: <span itemprop = "category">Fruit</span></p>
     <p>Producer: <span itemprop = "brand">Dole</span></p>
     <p>Product ID: <span itemprop = "indentifier">123456789</span></p>
     <img itemprop="image" src="banana-photo.png" alt="banana">
</div>

Microdata use is compatible with Resource Description Framework (RDFa). RDFa works with XHTML’s attribute level extensions. This specification, however, is more simple than the specification for RDFa, and it is part of the HTML-5 specification. Both RDFa and microdata usage are forms of semantic markup.

Any microdata can be extracted for use with JavaScript Object Notation (JSON). JSON is a data-interchange format, considered light-weight, that humans can read. JSON may be used with Asynchronous Javascript and XML (AJAX) programming methods. These methods allow web application data to be fetched from a server without affecting the web page’s behavior and appearance. Web 2.0 applications frequently make use of AJAX, so microdata systems may be useful for these programs.

Search engines scan pages for content structured with microdata so that its rich snippets can present better information on the search results page. It is of particular use in improving local search results, which consists of special search engines going through a specified region’s business listings data. The company has information on how to add this code to HTML documents in its webmaster tools section.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-microdata.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.