HTML itemid Attribute
In this article, we will know about HTML itemid attribute with its implementation through the examples.
We know that all the HTML elements have attributes as they provide additional information about that particular element. It takes two parameters, name and value which define the properties of the element and are placed inside the element tag.
The itemid is a type of global attribute. Attributes that are common to all elements of HTML that provide microdata in the form of a unique, global identifier of an item. You should use this attribute only when you are using microdata. This attribute can only be used with those elements that have both itemscope and itemtype attributes. If the itemid attribute is missing then it is said to have no global identifier.
<dl itemscope itemtype="https://www.geeksforgeeks.org/html-book" itemid="urn:isbn:0-323-34323-9">
Attribute Value: This attribute must have a value that is a valid URL having no leading and trailing whitespace.
Note: The itemid must be URL or you can also use URN as we have used in the below example.
- Google Chrome
- Edge 12 and above
Please Login to comment...