1.

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 irrelevantI had been asked this question during an interview.My doubt stems from HTML DOM topic in chapter Caching, Debugging and Animation of JavaScript

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions