I can't remember the term that is used to describe the difference between an html tag that is self-closing,
For example, <hr />
closes itself.
<p>This doesn't</p>
The term used by the XML specification is:
Empty-element tag
The relevant part of the specification says:
Tags for Empty Elements
[44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [WFC: Unique Att Spec]Empty-element tags may be used for any element which has no content, whether or not it is declared using the keyword EMPTY. For interoperability, the empty-element tag SHOULD be used, and SHOULD only be used, for elements which are declared EMPTY.
However, you might also frequently hear the term self-closing tag.
I have always used the term "self-closing tag". I didn't know there was another term!
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