Basic guide to Microdata

Basic Guide to Microdata

Basic Guide to Microdata

Have you ever thought what sense does your HTML makes to the search engines? Only thing that search engine can do is judge the sense or information on the basis on content. That might not be exact sense with which the content has been written.

So how will the search engine figure out the exact information from content? Answer is Microdata; Microdata is a syntax for embedding machine-readable metadata in HTML. There are some attributes and ruleset to use those attributes. When used properly; it will enable your HTML page to be understood by the search engines. Here is the basic guide to microdata.

Any content written with microdata must adhere to any kind of schema. All the schemas are available at

So very first attribute to start with micro data is itemscope. With this attribute; you define the scope of the item. Now question is what type of item is this? So for that you need to define the attribute itemtype attribute with a URI of the schema type with which it adheres.

So let see an example. Following is the plain sense less content HTML which tells about any Person.

Now to make this above content sensible; we will make following changes:

Now as the itemscope is defined; we will structure the data. Structuring like Name, Job, Address etc.

Now in above HTML Hello, my name is John Doe name of the person John Doe will go like this:

In above code we saw the use of another attribute itemprop which will define the type of content.

So this way we can define whole content with microdata:

Now there is one more thing that the address can be more meaningful. And hence we will nest the itemscope attribute here like this:

And the this how we make our content meaningful to machines(servers). And Google will interpret the above mocrodata rich HTML content as:

Now all this is for Search Engines; but you can use MicrodataJS to work with the microdata in your JavaScript App.

Got Something To Say:

Your email address will not be published. Required fields are marked *