Forum Moderators: phranque
E.g
<table width="800" height="600" border="0" align="center">
Line 25, column 26: there is no attribute "HEIGHT"
According to the W3C validation tool, it says I should get around this by designing the site using CSS (I already use CSS for fonts/links but not layout).
Should I keep the existing invalid code and carry on or stop and learn CSS (I've tried already!)
Any ideas/thoughts? Thanks ppl
Same goes for <body margin=.....> just set:
body, html {
margin:0;
padding:0;
}
and you're on your way to a validating page. If you stick to html 4.01 transitional you'll be able to retain almost all your html with very few changes and still have a clean validating document.
img tags are usually the hardest site wide, since often they didn't have alt= something attributes, but all you need is alt="" and it does the job.