=================================== Tags =================================== Hello --- (fragment (element (start_tag (tag_name)) (text) (end_tag (tag_name)))) =================================== Tags with attributes =================================== --- (fragment (void_element (void_start_tag (void_tag_name) (attribute (attribute_name) (attribute_value)) (attribute (attribute_name) (quoted_attribute_value (attribute_value))) (attribute (attribute_name))) (end_tag (tag_name)))) =================================== Nested tags ===================================
a b c
--- (fragment (element (start_tag (tag_name)) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (element (start_tag (tag_name)) (text) (end_tag (tag_name))) (text) (end_tag (tag_name)))) ================================== Void tags ==================================

--- (fragment (element (start_tag (tag_name)) (void_element (void_start_tag (tag_name) (attribute (attribute_name) (quoted_attribute_value (attribute_value))))) (void_element (void_start_tag (tag_name))) (void_element (self_closing_tag (tag_name) (attribute (attribute_name) (attribute_value)) (attribute (attribute_name) (attribute_value)))) (end_tag (tag_name))))