SEO seems to be a subject surrounded by both myths and varying opinions. Nevertheless, I would like to know if you have an opinion on how important it is to have semantically correct XHTML, that is, well-formed and valid XHTML, with regards to SEO.
migrated from stackoverflow.com Dec 2 '10 at 15:20
|
|||||
|
|
Some search engines will give you penalty points for mismatched doctypes, encodings, botched HTML, etc... |
|||||||||
|
|
If you want your XHTML to be properly parsed and "well understood" by the search engine crawler/indexer, then yes...it is important. The major search engines should be able to handle minor issues but those types of mistakes may or may not hurt your ranking depending on which search engine you're talking about. |
|||
|
|
Not only does it help the search engine "understand" your content, usually correct code is less obtrusive and therefore makes up less of the page. At least with Google, your code to content ratio affects your score, so it's another vote for good clean (minimal) code. |
|||
|
|
|
You should try to write semantic and valid XHTML even without regards to SEO, as it helps to keep your code clean. As for search engines, Google uses very complex algorithms to rank your site, and validity & semantic code will definitely be amongs them. Nobody except for Google can tell you exactly how much does it matter, but it will definitely help. |
|||
|
|
|
Since the question was |
|||
|
|
<blockquote>instead of<div class="quote">. It has nothing to do with validation. – Alin Purcaru Dec 2 '10 at 15:19