HTML5 Microdata Attributes

JavascriptWeb DevelopmentFront End Scripts

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.
raja
Published on 10-Apr-2018 17:25:06
Advertisements