Is there a name for a tag that closes?

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!:)

+4
source share
1 answer

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:]

+7
source

All Articles