19.14 Summary
In this chapter, you’ve learned a lot about the DOM and DOM manipulation. The abundance of information in such a small space might have been a bit overwhelming. For this reason, here’s a brief summary of the most important information you’ve learned and should know:
-
You know how to search for a specific element in a DOM tree starting from the document object using the following methods querySelector(), querySelectorAll(), getElementById(), getElementsByTagName(), getElementsByClassName(), and getElementsByName().
-
You know the innerHTML property, which you can use to access or modify the contents of an HTML element. In addition, you know other properties or methods that you can use to change the value of an attribute (attribute ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access