In a tag based language like HTML or XML, there are tags which close themselves without the use of a second tag:
<tag/>
Rather than this:
<tag></tag>
Is there a specific name for tags that close themselves?
Thanks! :)
The XML specification refers to them as empty-element tags.
Source:
Definition: An element with no content is said to be empty.] The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. [Definition: An empty-element tag takes a special form:]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With