W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: Closing anchor tag problem

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 06 Apr 2005 18:53:25 +1000
Message-ID: <4253A385.7030105@lachy.id.au>
To: KB Roka <kbroka@viewnepal.net>
CC: www-validator@w3.org


Firstly, why did you reply to this thread when your issue is completely 
unrelated?  Next time, please start a new thread for a different topic, 
however searching the archives for the topmargin and/or leftmargin 
attributes would have probably answered your question.

KB Roka wrote:
> I'm getting a error when I try to verify my page as being
> valid HTML 4.01 Transitional markup.
> 
> <body topmargin="0" leftmargin="0"> --- errors here
> 
> May i know please how can we make it solve ??

They're invalid proprietary attributes created by Microsoft for IE only. 
  Remove them and use CSS for the presentation instead.  Put this in an 
external stylesheet or within a <style type="text/css"> element in the head.

body { margin-top: 0; margin-left: 0; }

If you want all margins to be 0, rather than just top and left, then use 
instead:

body { margin: 0; }

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Wednesday, 6 April 2005 08:53:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT