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

<br> vs. <p>

From: Jim Angstadt <jima@gvn.net>
Date: Fri, 24 Mar 2000 11:47:55 -0600
To: W3C Tidy <html-tidy@w3.org>
Message-ID: <OF24E506A6.D6564A7E-ON862568A5.007422DB@rfdinc.com>

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.

Received on Friday, 24 March 2000 13:13:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC