in Education by
What is the reason for avoiding the attributes property in the HTML DOM? (a) Found unnecessary (b) Attributes don’t have attributes (c) Attributes have attributes (d) Considered irrelevant I had been asked this question during an interview. My doubt stems from HTML DOM topic in chapter Caching, Debugging and Animation of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Correct answer is (b) Attributes don’t have attributes For explanation I would say: When a web page is loaded, the browser creates a Document Object Model of the page. The reason for avoiding the attributes property in the HTML DOM is because Attributes don’t have attributes.

Related questions

0 votes
    What is the work of the form control elements in the HTML DOM? (a) User Interface elements (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How is everything treated in HTML DOM? (a) Node (b) Attributes (c) Elements (d) Arrays This ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What does the NamedNodeMap object represent in the HTML DOM? (a) Unordered collection of elements (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the Attr object in the HTML DOM? (a) Used to focus on a particular part ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which of the following is a type of HTML DOM? (a) Legacy DOM (b) W3C DOM (c) IE4 DOM ( ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    DOM Level 3 Events standardizes which of the following events? (a) focusarea and focusover (b) focusall and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How do we get the DOM object in JavaScript? (a) getElementbyId() (b) getObject() (c) getElement( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the purpose of the Legacy DOM? (a) Makes the scripting easier (b) Allows access to few ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which node type represents the root-node of the DOM tree? (a) Document (b) DocumentFragment (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    The object has three object attributes namely ________ (a) Class, parameters, object's extensible flag (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of the following attributes are common to both audio and video? (a) enter (b) control (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...