Render Flow - Nested elements
Read <div>
Create DIV node
Read <p> inside DIV
Create P node as child of DIV
Add text node inside P
Close P
Close DIV
The browser reads the HTML from top to bottom, creating a tree of elements. Nested tags become child nodes inside their parent nodes, building a hierarchy.