W3C home > Mailing lists > Public > www-validator@w3.org > November 2006

Re: Your validator says I got errors that I don't have...

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 09 Nov 2006 01:03:11 +1100
Message-ID: <4551E39F.3050804@lachy.id.au>
To: anders moen <anders_sm@hotmail.com>
CC: www-validator@w3.org

anders moen wrote:
> This is some of the stuff in my code, but still I get "no attribute" <BODY 
> TOPMARGIN=*"*5" BOTTOMMARGIN=*"*5"> Does that mean "TOPMARGIN" isn't any attribute?

Despite the confusing wording of the error message, it actually means 
that the topmargin attribute isn't defined.  It's a proprietary 
extension that should not be used.


You don't need to use attributes like topmargin and bottommargin, you 
can use CSS instead.  e.g.

body { margin: 5px 0; }

Lachlan Hunt
Received on Wednesday, 8 November 2006 14:03:28 UTC

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