- 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
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 specified. > <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 DTD. 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. http://sandbox.bednarz.nl/sgml/dtd/tagsoup.dtd -- Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Sunday, 29 August 2004 16:27:07 UTC