use tag_elements method instead of start_tag and end_tag.