1.

Which of the following is the attribute that is used to add a name/value pair to a microdata item?(a) itemscope(b) itemref(c) itemprop(d) itemidThe question was posed to me during an online interview.Enquiry is from HTML and XHTML Element Reference topic in division HTML and XHTML Fundamentals of HTML

Answer»

Right choice is (C) itemprop

Explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions