A further search
Quote:
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
|
Void type elements are never <tag></tag>
Container elements with no content may work as <tag />, but it's as likely to break in a web browser, hence ALWAYS use <tag></tag> even if no content, such as <script type="text/javascript" src="external.js">< /script> because it will break without a separate closing tag.
NEVER <script type="text/javascript" src="external.js" />
Most ereaders don't support script at all.
As noted earlier, ebooks only support a subset of void elements.