Render Flow - HTML document structure
Read <!DOCTYPE html>
→Set HTML5 mode
Read <html lang="en">
→Create HTML root node
Read <head>
→Create HEAD node as child
Read <meta charset="UTF-8">
→Add metadata
Read <title>
→Add title text
Close HEAD
Read <body>
→Create BODY node as child
Read content inside body
→Add content nodes
Close BODY
Close HTML
The browser reads the document from top to bottom, building a tree of elements starting with the root <html>. Metadata in <head> is processed first, then visible content inside <body> is prepared for display.