Contents

The Text and Comment is part of…………….
a) CharacterData              
b) Document
c) Attr                                    
d) Element

a

The nodes that represent HTML elements are the…………
a) Subclass nodes               
b) HTML nodes
c) Window nodes
d) Element nodes

d

Which of the following is/are of Text nodes?
a) Text                                  
b) Comment
c) Both Text and Comment
d) h1

c

Which is not the way to query a document for an element or elements?
a) With a specified id attribute
b) Matching the specified CSS selector
c) With the specified tag name
d) without the specified CSS class or classes

d

Which of the following can be used to select HTML elements based on the value of their name attributes?
a) getElementByName()
b) getElementsByName()
c) getElementsName()
d) getElementName()

b

Which of the following property refers to the root element of the document?
a) documentElement
b) elementdocument
c) rootdocument
d) rootelement

a