W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

Re: <br> vs. <p>

From: John Carroll <jjc@groveton.com>
Date: Fri, 24 Mar 2000 11:47:55 -0600
To: Jim Angstadt <jima@gvn.net>
Cc: W3C Tidy <html-tidy@w3.org>
Message-ID: <OFFE531CE2.A7282C62-ON862568A5.007BAC68@rfdinc.com>


For what it's worth, I just ran your code snippet through tidy26jul99 and
tidy27sep99 on a linux box and both my tidy versions claimed there were no
warnings or errors.  Tidy recognized the code as html 3.2.  Don't know
whether the problem is specific to Windows or whether more recent versions
of Tidy all display it.

John Carroll


>
> Tidy modifies the following code samples:
>
> <br clear=all>         or
> <br clear="all" />     or
> <br clear="all"></br>> to the following:
>
> <br clear="all" />
>
> on my Windows 98 box, while reporting:
>
> Tidy (vers 13th January 2000) Parsing "snow.html"
> line 20 column 6 - Warning: trimming empty <p>
>
> Re-running Tidy results in the same warning message for each instance of
> the Tidied br element.
>
> Question 1.  Why does Tidy report an empty <p> and not an empty <br>?
>
> Question 2.  Is there a better, or more preferred, way to do this?
>
> The following code represents a basic repetitive pattern on my pages.
> Minor variations might include two images rather than one, or several
> paragraphs rather than one.  In all cases the <br> element is reported
> by Tidy.
>
>
>     <h3>The Training Area</h3>="right" hspace="15" vspace="5"
>     src="overview.jpg" alt="The simulator area" width="226"
>     height="160" /></a>>     <p>Blah, blah, blah.</p>>     <br clear="all" />
>
> If this subject has been previously discussed, I apologize.  Please just
> point me in the right direction.
>
> Thanks,
> Jim
> jima@gvn.net
>
>
Received on Friday, 24 March 2000 13:13:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT