Getting started with schema.org using Microdata
Most webmasters are familiar with HTML tags on their pages. Usually, HTML tags tell the browser how to display the information included in the tag. For example,

Avatar


tells the browser to display the text string "Avatar" in a heading 1 format. However, the HTML tag doesn't give any information about what that text string means—"Avatar" could refer to the hugely successful 3D movie, or it could refer to a type of profile picture—and this can make it more difficult for search engines to intelligently display relevant content to a user.
Schema.org provides a collection of shared vocabularies webmasters can use to mark up their pages in ways that can be understood by the major search engines: Google, Microsoft, Yandex and Yahoo!
You use the
schema.org
vocabulary along with the
Microdata
RDFa
, or
JSON-LD
formats to add information to your Web content.
This guide will help get you up to speed with Microdata and schema.org so that you can start adding markup to your web pages.
Although this guide focuses on
Microdata
most examples on the
schema.org
site show examples in RDFa and JSON-LD too.
The basic ideas (types, properties etc.) introduced here are relevant beyond Microdata - take a look at the
examples to see how the details compare.
How to mark up your content using microdata
Why use microdata?
itemscope and itemtype
itemprop
Embedded items
Using the schema.org vocabulary
schema.org types and properties
Expected types, text, and URLs
Testing your markup
Advanced topic: Machine-understandable versions of information
Dates, times, and durations
Enumerations and canonical references
Missing/implicit information
Extending schema.org
1. How to mark up your content using microdata
1a. Why use microdata?
Your web pages have an underlying meaning that people understand when they read the web pages. But search engines have a limited understanding of what is being discussed on those pages. By adding additional tags to the HTML of your web pages—tags that say, "Hey search engine, this information describes this specific movie, or place, or person, or video"—you can help search engines and other applications better understand your content and display it in a useful, relevant way. Microdata is a set of tags, introduced with HTML5, that allows you to do this.
1b. itemscope and itemtype
Let's start with a concrete example. Imagine you have a page about the movie Avatar—a page with a link to a movie trailer, information about the director, and so on. Your HTML code might look something like this:

Avatar


Director: James Cameron (born August 16, 1954)
Science fiction
Trailer

To begin, identify the section of the page that is "about" the movie Avatar. To do this, add the
itemscope
attribute to the HTML tag that encloses information about the item, like this:
itemscope

Avatar


Director: James Cameron (born August 16, 1954)
Science fiction
Trailer