Render Flow - First HTML page
[Read <!DOCTYPE html>] -> [Create Document] -> [Read <html lang="en">] -> [Create HTML element] -> [Read <head>] -> [Create HEAD element] -> [Read <meta charset="UTF-8">] -> [Add meta to HEAD] -> [Read <title>] -> [Add title text] -> [Close HEAD] -> [Read <body>] -> [Create BODY element] -> [Read <h1>] -> [Create H1 element with text] -> [Close BODY] -> [Close HTML]
The browser reads the HTML line by line, building a tree of elements starting from the document type, then the html root, head with metadata, and finally the body with visible content.