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?

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 textContent
 
Answer: b
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.
 

Tìm kiếm

Back
Top