Render Flow - Role of HTML in web development
Read <html>
→Create HTML root node
Read <head>
→Create HEAD node
Read <title>
→Create TITLE node
Close HEAD
Read <body>
→Create BODY node
Read <h1>
→Create H1 node
Read <p>
→Create P node
Close BODY
Close HTML
The browser reads the HTML tags one by one, building a tree structure called the DOM. Each tag creates a node, and text inside tags becomes content nodes. This tree guides how the page is displayed.