Quote:
I've never seen working HTML without closing tags other than standalone tags such as <br>, which is usually <br/>
It doesn't just throw an error. The rest of the file can be affected.
|
Actually there is such a thing a tag omission:
Quote:
Paragraphs are block-level elements, and notably will automatically close if another block-level element is parsed before the closing </p> tag. See "Tag omission" below.
|
Quote:
Tag omission:
The start tag is required. The end tag may be omitted if the <p> element is immediately followed by an <address>, <article>, <aside>, <blockquote>, <div>, <dl>, <fieldset>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hr>, <menu>, <nav>, <ol>, <pre>, <section>, <table>, <ul> or another <p> element, or if there is no more content in the parent element and the parent element is not an <a> element.
https://developer.mozilla.org/en-US/...HTML/Element/p
|
I only noticed it when a page of mine validated with a missing closing p tag.
(Obviously this won't work in xhtml in epubs, where even void elements like hr and br have to be closed with a trailing slash: <hr />, <br />.)