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
The last time I checked, the following were the empty/void elements listed in HTML5.
Valid for authors: area, base, br, col, command, embed, eventsource, hr, img, input, link, meta, param, source
Invalid for authors: basefont, bgsound, frame, spacer, wbr
Besides the few that are new in HTML5, that should give you an idea of ones that might be supported when serving XHTML as text/html. (Just test them by examining the DOM produced.)
As for XHTML served as application/xhtml+xml (which makes it XML), XML rules apply and any element can be empty (even though the XHTML DTD can't express this).