1.

Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a meta element?(a) The value is the item created by the element(b) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise(c) On getting, if the element has a datetime content attribute, the IDL attribute must return that content attribute’s value(d) The value is the element’s textContentI have been asked this question in my homework.The question is from Microdata in section HTML Fundamentals of HTML

Answer»

Right answer is (B) The value is the value of the ELEMENT’s value attribute, if it has one, or the empty string otherwise

The BEST explanation: When the property value of a name-value pair added by an element with an itemprop attribute which is a meta element then the value is the value of the element’s value attribute, if it has one, or the empty string otherwise. The “itemprop” attribute is a GLOBAL attribute which adds PROPERTIES to item.



Discussion

No Comment Found

Related InterviewSolutions