Self Closing Tags are used for “Empty” Elements within XHTML and HTML5.
An empty element is an element that has no child element. Think of a pregnant woman – she has a child inside. Elements like…
…can contain other elements between the opening and closing tags. Empty elements do not. So there is no closing tag, we just end the opening tag with ” />” That is a space, slash and the closing greater than sign.
HTML4 Most people do not realize that although self closing tags are not part of the HTML4 standard, and will not pass the W3C Validator, nonetheless virtually ALL browsers available today accept self closing tags!
CNN.COM uses self closing tags in its HTML 4.o1 doctype pages! This prepares them for the jump to HTML5.
Below is my list of empty elements in their self closing tag form…
HTML5 or XHTML 1.x
XHTML 1.0 Transitional Only (add)