Re: Error: No p element in scope but a p end tag seen.

error due to list <ul> inside <p>

<p> can only contain phrasing content
http://w3c.github.io/html/dom.html#phrasing-content



--

Regards

SteveF
Current Standards Work @W3C
<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>

On 5 July 2016 at 06:22, Ben Butler <ben@animatedzombie.com> wrote:

> Hi,
> I received this error in the html validator, but the html does contain a
> <p> tag at the beginning:
>
> *Error*: No p element in scope but a p end tag seen.
>
> From line 27, column 572; to line 27, column 575
>
> continue.*</p>*↩
>
> Perhaps there is an error in the parser or you may have an explanation for
> me. Here is the html extract that is failing:
>
> <div class="text">
>                             <p>Refer to section 5 for a full list of
> numbers and contacts you could use (such as Lifeline) when asked <i>Who
> would I talk to?</i> Review this checklist:<ul><li>Express your
> concerns</li><li>Be calm and supportive</li><li>Ask open-ended
> questions</li><li>Be open, make eye contact, use relaxed body
> language</li><li>Summarise</li><li>Treat problems seriously</li><li>Thank
> and acknowledge courage</li><li>Refer to Lifeline 13 11
> 14</li></ul>Remember: Starting a conversation can save someone's
> life.<br/><br/>Select <b>Next</b> to continue.</p>
>                         </div>
>
> Cheers,
> Ben
>

Received on Tuesday, 5 July 2016 08:55:48 UTC