From the course: Python Automation and Testing

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

What is the HTML DOM structure?

What is the HTML DOM structure?

From the course: Python Automation and Testing

Start my 1-month free trial

What is the HTML DOM structure?

- [Instructor] The HTML document object model, or the HTML DOM defines the standard way for accessing and manipulating HTML documents. In the document object model, documents have a logical structure which is very much like a tree. To be more precise it is like a forest or grove which can contain more than one tree. The DOM presents an HTML document as a tree structure with elements, attributes, and text. The structure of the DOM for any document will resemble the actual structure of the mock up of the document. With the DOM, programmers can create and build documents, navigate their structure, and add, modify, or delete elements and content. Consider the following HTML document. The DOM for this document includes all the elements and any text nodes within those elements. The core above, creates an object hierarchy as shown in the diagram. Each element under the document root, that is HTML, there's an element node, and these element nodes have text nodes containing the text that is…

Contents