What is an HTML empty element? in HTML/XHTML Posted February 12, 2022 We're told that <br> is an empty element and it has no end tag. Is "<p></p>" an empty element? It has no content ("stuff between the start/end tags"). Is it true that "empty elements" have no end tag? If it is, then why does "<p></p>" have an end tag, given it has no content and is therefore an empty tag?
What is an HTML empty element?
in HTML/XHTML
Posted
We're told that <br> is an empty element and it has no end tag.
Is "<p></p>" an empty element? It has no content ("stuff between the start/end tags").
Is it true that "empty elements" have no end tag?
If it is, then why does "<p></p>" have an end tag, given it has no content and is therefore an empty tag?