HTML5 Microdata Attributes


Microdata introduces five global attributes that would be available for any element to use and give context for machines about your data.

Attribute
Description
Itemscope
This is used to create an item. The itemscope attribute is a boolean attribute that tells that there is Microdata on this page, and this is where it starts.
Itemtype 
This attribute is a valid URL which defines the item and provides the context for the properties.
Itemid
This attribute is a global identifier for the item.
Itemprop
This attribute defines a property of the item.
Itemref
This attribute gives a list of additional elements to crawl to find the name-value pairs of the item.

Updated on: 29-Jan-2020

104 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements