Render Flow - How browsers read HTML
Read <html>
→Create HTML node
Read <head>
→Create HEAD node as child
Read <title>
→Create TITLE node as child
Add text inside TITLE
Close TITLE
Close HEAD
Read <body>
→Create BODY node as child
Read <h1>
→Create H1 node as child
Add text inside H1
Close H1
Read <p>
→Create P node as child
Add text inside P
Close P
Close BODY
Close HTML
The browser reads HTML from top to bottom, creating a tree of nodes called the DOM. Each tag creates a node, and text inside tags becomes text nodes. This tree guides how the page is shown.