Forum Moderators: open
I wonder if really matters at all, since it detects as invalid code the very common attribute leftmargin and marginwidth as invalid... they are for IE and NN ..
Line 15, column 76: there is no attribute "LEFTMARGIN" (explain...).
.../diag.gif" text="#000000" leftmargin="20" topmargin="0" marginwidth="20" marg
^
Line 15, column 91: there is no attribute "TOPMARGIN" (explain...).
...="#000000" leftmargin="20" topmargin="0" marginwidth="20" marginheight="0">
^
Line 15, column 107: there is no attribute "MARGINWIDTH" (explain...).
...argin="20" topmargin="0" marginwidth="20" marginheight="0">
^
Line 15, column 125: there is no attribute "MARGINHEIGHT" (explain...).
...in="0" marginwidth="20" marginheight="0">
^
Line 16, column 26: there is no attribute "HEIGHT" (explain...).
<table WIDTH="90%" height="100%" border="0" ALIGN="center" cellpadding="10" CELL
^
Line 43, column 80: there is no attribute "BORDERCOLOR" (explain...).
...ding="0" cellspacing="0" bordercolor="#000000" rules="all" id="paginas web">
^
Line 43, column 113: value of attribute "ID" must be a single token
...lor="#000000" rules="all" id="paginas web">
^
It's a choice you have to make. To me, supporting (some few) older browsers (i.e. NS4) to some extend is more important than validation.
However, the other errors are avoidable. Topmargin, leftmargin etc. should be specified in CSS for your body tag.
Table related heights should be specified for TDs instead of TABLE tags.
Bordercolor - again CSS.
ID - I'm assuming this means no space.
Whether it's 'important'... well that's down to you. In my case, coding to standards has made me a better coder, and and pushed me into using CSS in areas where I had avoided it in the past. The result? Faster, smaller and more compatible pages.
At least if you know what's standards compliant then leaving in NN4 tags is an informed decision rather than an unwillingness to embrace standards.
As for for search engines not reading non-compliant code; they'll read pretty much anything at the moment, and quality of code is not a ranking criteria. It might be in the future though, and that should be reason enough to stay on top of your game.
And having well-formed code, at least, is a very important factor. I once had a section of a page that contained critical keywords, and it wasn't showing in the searches -- even though the page itself was included. After quite a few weeks I had occasion to validate the page and discovered mal-formed HTML right there. So the page was being indexed, but the ection around the error was being skipped.
At least if you know what's standards compliant then leaving in NN4 tags is an informed decision
Exactly. Don't be rigid about validation, but DO make it a conscious choice when you use any exceptions in your code.
Most spiders will try their best to chew through your pages no matter how many errors you have in them, and they will (try to) extract the important information as well. Validation makes it so much easier for them to do so - it's not required, but it's comparable to doing them a favour, or to peeling the banana before letting them eat it, if you prefer.
It's not the validation in itself that will improve your rankings, it's the mindset you will be forced to enter when you write valid pages, as this is very much a question of structure and consistency - plus separating content from layout. Also, you reduce the risk of critical coding errors (eg typos) greatly by validating.
Still, it's perfectly possible to write validating pages that rank very bad in the SERPS - you must combine it with your SEO knowledge to benefit. Eg. you can still have valid links that just say "Click Here", valid titles that say "NewPage1", valid body text that says "Lorem ipsum" and all kinds of other nonsense.
/claus
I can't be bothered to spellcheck my pages.
I can't be bothered to check if the right prices are shown.
I can't be bothered to check if I described my products correctly.
I can't be bothered to process orders correctly.
You let one thing slip, and how many others slide with it? How many things might your most websavvy customers think that you let slip too?