Mid JavaScript Parsing HTML:? The browser reads HTML line-by-line and builds a DOM (Document Object Model) tree.