- From: ottahe <ottahe@posteo.de>
- Date: Tue, 18 Jan 2022 12:36:21 +0000
- To: "Jukka K. Korpela" <jukkakk@gmail.com>
- Cc: W3C WWW Validator <www-validator@w3.org>
Hello Jukka, it looks okay without the <p>...</p> and now it's without errors. Thanks alot. --- Mit freundlichen Grüßen / Kind regards Joachim Ott GPG Fingerprint 8923 DE80 DB8C 9126 552A 967F 41EE DED6 DFF5 5986 Threema: D4ZVAWVV - https://threema.ch/de/warum-threema Wire: @ottahe - https://wire.com/ Am 18.01.2022 11:45 schrieb Jukka K. Korpela: > ottahe (ottahe@posteo.de) wrote: > >> I have such a construct in a html page, the result is shown as >> expected. >> The validator says: >> >> Error: No p element in scope but a p end tag seen. >> From line 256, column 34; to line 256, column 37 >> on"></pre></p>↩ >> >> Do I need to change my code? > > Yes, you need to remove the nesting of a <pre> element inside a <p> > element, in > <p><pre id="da-json"></pre></p> > > The <pre> element is a block element and not allowed inside a <p> > element, which may contain text and text-level markup only. > > The simplest fix is to remove the tags <p> and </p>. This may affect > the rendering, since now there is an empty <p> element (implicitly > closed by the <pre> tag) before the <pre> element, and this may cause > some vertical spacing in some browsers. Use CSS margin properties to > set the desired spacing. > > Yucca, https://jkorpela.fi [1] > >> > > > Links: > ------ > [1] https://jkorpela.fi
Received on Tuesday, 18 January 2022 12:38:34 UTC