Machine-translated by Google. Questions are authored in English.
Top

Discussion

In HTML, which of the following is the attribute that is used to add a name/value pair to a microdata item ?

  • A.item scope
  • B.itemref
  • C.itemprop
  • D.itemid

Answer: C

The attribute is itemprop.

In HTML microdata, itemscope creates an item, and itemprop on a descendant element adds a property to it: the attribute's value is the property name and the element's content is its value, giving a name/value pair.

itemref pulls in properties from elsewhere in the page, and itemid gives the item a global identifier; neither adds a name/value pair itself. 'item scope' is not the spelling of any attribute.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.