Posted On: Feb 22, 2018
Microdata is a way of providing additional schematics to your document. With Microdata, you can create your own customized elements with the custom properties and embed them in your web application. Microdata is nothing but a group of name-value pairs. Each group is called an item and each name-value pair is a property.
The itemscope attribute in the Microdata is used to create an item and the itemprop attribute is used to create attributes for the items.
<div itemscope> <p>My name is <span itemprop = "name">Bob</span>.</p> </div> <div itemscope> <p>My age is <span itemprop = "age">35</span>.</p> </div>
The above code creates an itemscope with two properties name and age. It creates the following result.
My name is Bob.
My age is 35.
Never Miss an Articles from us.
The < !DOCTYPE> is an instruction to the web browser about what version of HTML the page is written in. AND The &l..