html validation
hihi all
i ve just create a site for my friend herbal-future , im trying to get it thru the w3c html validator, and returned the following errors.
---------------------------------------------------------------------
Line 48, column 49: there is no attribute "TOPMARGIN"
...R="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onL
Line 48, column 65: there is no attribute "MARGINWIDTH"
...margin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadI
Line 48, column 82: there is no attribute "MARGINHEIGHT"
...gin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('set2/image
Line 50, column 70: there is no attribute "HEIGHT"
...der="0" cellspacing="0" cellpadding="0" height="100%">
Line 74, column 183: there is no attribute "NAME"
...ages/Top2LinkHome.jpg',1)">
------------------------------------------------------------------------
the rest are just missing alt tags so i wont post, when it says "no attributes" am i using the wrong syntax
many thx
Suzanne posted this at 16:19 — 24th May 2004.
She has: 5,507 posts
Joined: Feb 2000
Yes -- topmargin, marginwidth, marginheight don't exist.
In the CSS:
body {
padding: 0;
margin: 0;
}
There is no attribute called height for the table. You can set that in the CSS, or not at all (better, let the content stretch it).
The name attribute is deprecated for this purpose -- it should be id.
<img id="homepage" border="0" src=...>
Cell backgrounds should be in the CSS.
<td width="247" style="background-image: url(pinkbg.jpg) #hex repeat-x; vertical-align: top;">
<!-- or even better -->
<td class="functionalName">
td.functionalName {
background-image: url(pinkbg.jpg) #hex repeat-x;
vertical-align: top
}
starter posted this at 16:43 — 24th May 2004.
They have: 80 posts
Joined: Feb 2003
ARgghhh ic now Suzanne
thx a mill Suzanne
i ll be back with more
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.