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:
> <BODY TOPMARGIN="5" BOTTOMMARGIN="5">
> 
> 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.

http://validator.w3.org/docs/errors.html#ve-108

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

body { margin: 5px 0; }

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Wednesday, 8 November 2006 14:03:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC