<p>The W3C recommends that the <code><p></code> element have at least one child node, even if that child is merely text (see <a href="http://www.w3.org/TR/html401/struct/text.html#edef-P">http://www.w3.org/TR/html401/struct/text.html#edef-P</a>). Some other elements, on the other hand, are empty (i.e. have no children) by definition:<code> <input></code>, <code><img></code>, <code><br></code>, and <code><hr></code>, for example.</p>
0 commit comments