Render Flow - Opening and closing tags
Read <html>
→Create HTML node
Read <body>
→Create BODY node as child
Read <p>
→Create P node as child
Read text
→Add text to P
Read </p>
→Close P node
Read </body>
→Close BODY node
Read </html>
→Close HTML node
The browser reads each opening tag to create elements in the DOM tree, adds text inside elements, and uses closing tags to know when elements end.