W3C home > Mailing lists > Public > www-validator@w3.org > November 2014

Re: [VE][html5] stray end div tag

From: Olle Olsson <olleo@sics.se>
Date: Fri, 28 Nov 2014 16:16:12 +0100
Message-ID: <547891BC.8070108@sics.se>
To: www-validator@w3.org
If I remove most of the uninteresting things, this is what I get:
>
> <div class="biscotti_description">
> <div id="description_left">
> </div>
> <div id="photo_right">
>   <img src="images/vanilla_anise_strip.png" width="675" height="200"
> alt="vanilla anise biscotti"> </div>
> </div>
> </div>

So it has 3 <div> and 4 </div>

So the error report is correct.

/olle

> <div class="biscotti_description">
> <div id="description_left">
>
> </div>
>
> <div id="photo_right">
>
>   <img src="images/vanilla_anise_strip.png" width="675" height="200"
> alt="vanilla anise biscotti"> </div>
>
> </div>
>
> </div>
>



On 2014-11-27 08:05, Kurt Esposito wrote:
>
> I keep getting an error telling me i have a stray div tag but it says 
> my third div tag of three div tags stray. how is it stray if it's the 
> third of three?
>
>
> <div class="biscotti_description">
>
> <div id="description_left">
>
> <p class="write_up">
>
> Vanilla/Anise/Lemon Biscotti:  A crunchy, toasted cookie with the 
> delicate taste of vanilla, anise or lemon.  These biscotti are perfect 
> for breakfast or with afternoon tea.
>
> </p>
>
> </div>
>
> <div id="photo_right">
>
>   <img src="images/vanilla_anise_strip.png" width="675" height="200" 
> alt="vanilla anise biscotti"></div>
>
> </div>
>
> </div>
>
>
> According to the validator that last div tag is stray. I want to 
> understand why
>
> Validating http://www.mamacinis.com/
> Error [html5]: ""
>


-- 
------------------------------------------------------------------
Olle Olsson   olleo@sics.se   Tel: +46 8 633 15 19  Fax: +46 8 751 72 30
         [Svenska W3C-kontoret: olleo@w3.org]
SICS [Swedish Institute of Computer Science]
Box 1263
SE - 164 29 Kista
Sweden
------------------------------------------------------------------
Received on Friday, 28 November 2014 15:16:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 September 2016 06:30:31 UTC