Can You Improve Rankings by Cleaning Up Website Code?

Sep 12, 2007 - 9:00 am 4 by

A WebmasterWorld thread asks if cleaning up code will improve Google Rankings. Can removing bad code get better rankings in the SERPs?

Not so much for Google, as one webmaster points out. He has had better success with MSN when he cleaned up his code.

Other benefits of clean code include increased repeat visitors (faster load times) and the increased ability to get links from authority sites.

Meanwhile, some people are expecting that this may be a problem in the future.

I spent a lot of time over the past 6 mos cleaning up my code so that each page validates. While I don't think there's any benefit to Google if you skip an Alt tag here and there, there is the idea that this could matter in the future. As Google marches along it increases the characteristics that are important to the algo. By doing this housekeeping, you are ready if this happens.

Tedster echoes this sentiment:

The most problematic kinds of true errors in your HTML mark-up can be very difficult to spot by eye - they really need a tool, such as the W3C HTML Validator, to be ruled out with certainty.

What are these problems? Things like an unclosed quotation mark or a missing angle bracket on a tag. You can stare for hours at your source code and miss that kind of thing. But until you fix that kind of error, there is a section you intended as content that just looks like an invalid attribute, or something like that. Browsers have different error recovery routines, and just because the content displays on screen is no guarantee that Google's index will "see" it as content.

Eventually Google's error recovery routines may pick up a clue farther along in the code - and after that point, the rest of the page can be indexed. But there can easily be a gap, sometimes with important content, that just gets skipped. I speak here from painful experience.

It's something to keep in mind for the future, but it's not a big deal now unless your code is bad enough that the Googlebot is choking on it.

Forum discussion continues at WebmasterWorld.


Popular Categories

The Pulse of the search community


Search Video Recaps

Google Core Update Volatility, Helpful Content Update Gone, Dangerous Search Results & Ads Confusion - YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Google Maps

Google Maps No Longer Will Support Draft Reviews

Apr 17, 2024 - 7:51 am
Google Search Engine Optimization

Google Search Console Adds Unused Ownership Tokens

Apr 17, 2024 - 7:41 am
Google Ads

New Google Ads AI Generated Image Tool For Demand Gen Campaigns

Apr 17, 2024 - 7:31 am

Google Tests Horizontal Lines For Sitelinks & People Also Ask

Apr 17, 2024 - 7:21 am
Google Search Engine Optimization

Google: Should We Explain The Crawl Stats Report in Search Console

Apr 17, 2024 - 7:11 am
Search Forum Recap

Daily Search Forum Recap: April 16, 2024

Apr 16, 2024 - 4:00 pm
Previous Story: Do You Need a Break from SEO?