Vidyalelo
HTML · Q72

Basic HTML

Programming · HTML · question 72

Q72

Which method takes a string that contains an unordered set of unique space-separated tokens that are case-sensitive, representing types?

A.
document.getItems
Answer
B.
element.itemProp
C.
collection.namedItem
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
When called, the method must return a live NodeList object containing all the elements in the document, in tree order, that are each top-level microdata items whose types include all the types specified in the method’s argument, having obtained the types by splitting the string on spaces.