What are all the valid self-closing elements (e.g.
) in XHTML (as implemented by the major browsers)?
I know that XHTML technically allows any element to
They're called "void" elements in HTML 5. They're listed in the official W3 spec.
A void element is an element whose content model never allows it to have contents under any circumstances.
As of April 2013, they are:
area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
As of December 2018 (HTML 5.2), they are:
area, base, br, col, embed, hr, img, input, link, meta, param, source, track, wbr