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