Back in December, there was a post ‘.. Make the gaps stop’ by ‘cdxrevvved’ where some suggestions about validation were given. I validate my pages using Homesite and thought I would try [url]http://validator.w3.org
I got the a few minor errors regarding ‘alt’ in my image tags which were easily fixed but I got two additional errors that I am unable to resolve.
1.
<body marginheight=”0″ marginwidth=”0″ leftmargin=”0″ topmargin=”0″> which was suggested by Zach Elfers that I’ve been using for a long time.
Stefan responded with…..
Now we can rip out that proprietary crapcode you just added (marginheight=”0″ marginwidth=”0″ leftmargin=”0″ topmargin=”0″)
and suggested the use of..
body {margin:0;}
But this does not work in NS4xx. Is there a ‘valid’ fix other than don’t use NS4xx, upgrade?
2.
I use the following in-line script to insert a date on numerous pages (‘today’ is derived in an external script)
<script language=”JavaScript1.2″ type=”text/javascript”>
<!–
document.write(‘<div class=”date”>’+today+'</div>’);
//–>
</script>
The validator flags </div> stating that there is no starting <div>. What’s the problem?