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 

body { margin: 0; }

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:45 UTC