View Single Post
Old 10-17-2022, 09:39 AM   #5
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
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 />.)

Last edited by bookman156; 10-17-2022 at 10:14 AM.
bookman156 is offline   Reply With Quote