[html5] Optional end tag for P before FIGURE?

Ezequiel Garzón garzon.lucero at gmail.com
Fri Oct 3 13:09:14 PDT 2014


Greetings! Is there a reason FIGURE is not one of the elements before
which the P end tag may be omitted? The WHATWG and W3C validators do
not objetct, but it is not valid markup as I see it:

"A p element's end tag can 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, hgroup, hr, main, menu,
nav, ol, p, pre, section, table, or ul, element, or if there is no
more content in the parent element and the parent element is not an a
element."

Thanks!

Ezequiel


More information about the Help mailing list