Re: blank <p> paragraphs

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 ...

Regards,

-- 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