An open tag consists of a < character, a tag name, zero or more attributes, optional spaces, tabs, and up to one line ending, an optional / character, and a > character.
A closing tag consists of the string </, a tag name, optional spaces, tabs, and up to one line ending, and the character >.
Also somehow it seems a bit incompatible with rule 7 of HTML blocks:
Start condition: line begins with a complete open tag (with any tag name other than pre , script , style , or textarea ) or a complete closing tag, followed by zero or more spaces and tabs, followed by the end of the line.
It seems these open and close tags are not allowed to span more than one line in the same way (i.e. only self-closing tag work).
Ok thanks. These “complete” didn’t really click with me. Something like “line begins with an open tag which ends on the same line” would be clearer to me.