Home » HTML » Html miscellaneous » Question
  1. Which of the following is the attribute that is used to add a name/value pair to a microdata item?
    1. itemid
    2. itemscope
    3. itemref
    4. itemprop
    5. None of these
Correct Option: D

A boolean global attribute which specifies scope of associated metadata is itemscope. Itemmid is unique global identifier of item. To add a property to an item, the itemprop attribute is used on one of the item’s descendants. Markup without the microdata-related attributes does not have any effect on the microdata model. Itemref provides list of elements id’s with extra/additional properties in the document.



Your comments will be displayed only after manual approval.