An HTML document is a specialized XML document and, like all XML documents, is comprised of a hierarchy of node elements. Each node can have a parent node and zero or more child nodes. In previous chapters, you created these nodes through some type of HTML editor or possibly a simple text editor. In this chapter, I will show you how you can read and manipulate these nodes through JavaScript.
Document Object Model
For a quick review, here is a very simple HTML document. It contains a head element that contains four child elements: a meta, title, link, and script element. ...