In a tag-based language, such as HTML or XML, there are tags that close without using a second tag:
<tag/>
Instead of this:
<tag></tag>
Is there a specific name for tags that are closing?
Thanks!:)
the XML specification refers to them as tags with empty elements .
Source :
Definition: an element without content is considered empty.] The representation of an empty element is immediately the start tag followed by the end tag or a tag with an empty element. [Definition: the empty-element tag has a special form:]