Forum Moderators: open

Message Too Old, No Replies

HTML validators

         

TylerSpace

5:21 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



I am a newb to the whole search engine marketing thing, and was wondering for natural position how much do errors in the html code matter

victor

5:35 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some don't matter at all -- the spider/browser/reader will work out what you meant and keep chugging.

Others will cause great chunks of your pages to be skipped while the spider/etc finds the next bit it can make sense of.

Diferent spiders will choke on different errors, as will newer/older versions of the same spider.

You could aim to develop an encyclopedic knowledge of which errors are "safe" (or even beneficial) under given conditions.

That could take years of experimenting and self-denial.

Or you could take zero risk by not deliberately inserting errors into HTML.

Personally, I've never seen the point of deliberately inserting errors into HTML -- it's a bit like deliberately inserting errors into address labels. Sure, 99% of the time the mail carrier will get it right. But that's hardly a justification for the problems on the other 1%.

nanotopia

5:40 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



There's two ways of looking at this.

View 1. If it renders in most to all browsers correctly, it doesn't really matter -- just as long as people can properly view your page content.

View 2. Even if it does render correctly, it's considered sloppy, and not best practice. And it may break in the future when new browser updates come out that aren't as forgiving and its previous version.

Although View 1 is practical in the sense that it does the function you want and need, it's generally frowned upon. Personally, I fall into View 2, and although not ALL of my code is perfect, I do try to make it that way.

[edited by: nanotopia at 5:41 pm (utc) on June 13, 2005]

TylerSpace

5:40 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



Thanks for the help

tedster

5:44 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It depends so much on what the error is. Some errors can make it impossible for the spider to take in anything on the page following it - others are no big deal. Obviously if a search engine cannot recognize something in your document as content, then that "content" cannot rank or affect the ranking of the page involved.

Spiders do have error recovery routines for common situations. But the worst types of errors can be generated by missing "close quotes", doubled close quotes, missing angle brackets and small typo-like errors in the markup.

No search engine is going to let a non-standard attribute affect your ranking - however it's still better to learn to write to standards. The disciple of it has very positive side affects.

tedster

5:47 pm on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it renders in most to all browsers correctly, it doesn't really matter

One problem with that view is that it assumes browsers and spiders have similar error recovery routines. That's not a safe assumption, because spiders have no need to render a page, only to analyze it.