A list
Nested tags
Forgot a closing tag
HTML (edit me, no attributes needed)
Tokens (the pieces the parser reads, in order)
Back
Step
Run to end
Reset
A simplified parser: it handles tags without attributes, ignores blank text between tags, and knows that br, hr and img never hold children. Real browsers follow a much longer rulebook.