W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: [VE][108] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 29 Aug 2004 13:29:47 +0300 (EEST)
To: Dmitrii Chernikov <extreme@ultranet.ee>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0408291316160.24682@korppi.cs.tut.fi>

On Sun, 29 Aug 2004, Dmitrii Chernikov wrote:

> I can't understand. Why this line contains errors?

It contains attributes that are not allowed according to the DTD you have

> <body bgcolor="#FAFCFF" text="#000000" link="#00327C" alink="#00327C"
> vlink="#00327C" leftmargin="0" topmargin="0" rightmargin="0"
> bottommargin="0" marginwidth="0" marginheight="0">

The last six attributes belong to no published HTML specification.

> Validator tells me that bgcolor="#FAFCFF", link="#00327C"  here and in
> other places contains errors.
> Error: there is no attribute

If the validator reports e.g. the bgcolor attribute as an error, then you
have specified a DTD that does not allow it, such as the HTML 4.01 Strict

As a practical move, all the <body> attributes that you are using are best
replaced by the use of CSS. However, if you absolutely wish to maximize
the odds of making margins zero etc., then you cannot use HTML by the
specifications; in that case you might still find it useful to validate
against a customized DTD, see e.g.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Sunday, 29 August 2004 16:27:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:44 UTC