Tokens (the pieces the parser reads, in order)

    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.