Render Flow - Proper indentation
Read <html>
Create HTML node
Read <body>
Create BODY node as child
Read <div>
Create DIV node as child
Read <p>
Create P node as child
Add text content
Close P
Close DIV
Close BODY
Close HTML
The browser reads the HTML line by line, creating a tree of elements. Indentation in code helps humans see this tree structure clearly but does not affect how the browser builds the DOM.