- From: Steve Faulkner <faulkner.steve@gmail.com>
- Date: Mon, 22 Jan 2024 16:13:20 +0000
- To: Johan Koitka <johan.koitka@univ-artois.fr>
- Cc: www-validator@w3.org
- Message-ID: <CA+ri+Vne2+6srkXdQmMMXRgbHT=dmDNCBfBvqrjDenHQe7xOtw@mail.gmail.com>
end tags for <p> element are not required under certain circumstances https://html.spec.whatwg.org/multipage/grouping-content.html#the-p-element html element is similar Tag omission in text/html <https://html.spec.whatwg.org/multipage/dom.html#concept-element-tag-omission> :An html <https://html.spec.whatwg.org/multipage/semantics.html#the-html-element> element's start tag <https://html.spec.whatwg.org/multipage/syntax.html#syntax-start-tag> can be omitted if the first thing inside the html <https://html.spec.whatwg.org/multipage/semantics.html#the-html-element> element is not a comment <https://html.spec.whatwg.org/multipage/syntax.html#syntax-comments>.An html <https://html.spec.whatwg.org/multipage/semantics.html#the-html-element> element's end tag <https://html.spec.whatwg.org/multipage/syntax.html#syntax-end-tag> can be omitted if the html <https://html.spec.whatwg.org/multipage/semantics.html#the-html-element> element is not immediately followed by a comment <https://html.spec.whatwg.org/multipage/syntax.html#syntax-comments>. On Mon, 22 Jan 2024 at 15:48, Johan Koitka <johan.koitka@univ-artois.fr> wrote: > hi, > > if I try to validate the following code, I have no error or warning for > the missing p end tags. > what happened in the last year? It has always triggered an error before... > moreover, if I delete the html tag, I have just a warning for adding a > lang attribute, not for missing html tag. > > > <!DOCTYPE html> > <html lang="fr"> > <head> > <title>titre</title> > </head> > <body> > <p>test > <p>test2 > </body> > </html> > > thanks for your help. > regards, > Johan Koitka > > >
Received on Monday, 22 January 2024 16:14:02 UTC