W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

Re: blank <p> paragraphs

From: Dave Raggett <dsr@w3.org>
Date: Wed, 21 Jul 1999 17:14:17 +0100 (GMT Daylight Time)
To: John Russell <VE3LL@RAC.CA>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9907211711150.-256225@hazel.hpl.hp.com>
On Tue, 20 Jul 1999, John Russell wrote:

> the attached sample program kicks up TIDY errors for
> <p> within list items    but they do provide the function
> of spacing where needed for visibility ......  so they are not
> a donothing operation    ... is there a 'better' way to obtain
> the breaks so that i dont raise an error

I suggest using <br>'s or <p>&nbsp;</p> as a work around.

The correct way would be to add margin-top and margin-bottom
styles to li, but Netscape doesn't support this! :-(

> also img needing alt and table needing summary attributes
> so i put in null string attributes and no error msg was raised
> but it should say that meaningful text is required
> alt="" sushes detector but doesnt help viewer.......

But sometimes alt="" is the right thing to do, and Tidy
isn't smart enough to know. Tidy can tell that a document
is inaccessible, but it takes human judgement to tell if
it is accessible ...


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Wednesday, 21 July 1999 12:14:32 UTC

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