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 time element?(a) The value is the element’s datetime value(b) The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute(c) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise(d) The value is the element’s textContentI have been asked this question in a national level competition.This intriguing question comes from Microdata topic in section HTML Fundamentals of HTML

Answer»

The correct OPTION is (a) The VALUE is the element’s datetime value

For explanation: The “itemprop” ATTRIBUTE is a GLOBAL attribute which adds properties to item. When the property value of a name-value pair added by an element with an itemprop attribute which is a TIME element then the value is the element’s datetime value.



Discussion

No Comment Found

Related InterviewSolutions