html: create an insert_open_tag helper (tree construction)