Does Your Website Need a Root Canal?

by Ana on August 26, 2010 · 49 comments






Does Your Website Need a Root Canal?

When was the last time you were excited about going to your dentist for a root canal?

That’s precisely my sentiment about HTML code validation.

Nonetheless, it’s something that needs to be done; so let’s talk about what it is, how to check it, and how to correct invalid code.

Even in our day and age of technological sophistication, search engine spiders are not the brightest things.

They struggle with reading all kinds of code like frames, Flash, and dynamically generated pages. If you don’t know what those are, do not despair – neither do I. I just know they are best to be avoided and that’s good enough for me.

Here’s yet another item to add to that list : invalid HTML code.

Bad HTML code can definitely hurt your site high search engine ranking without you ever knowing it, and that’s why it’s so important that you at least know what code validation is and how to deal with it.

What Is HTML Validation?

HTML validation is a process of comparing your website code to the standard code as established by the World Wide Web Consortium (W3C).

It’ sort of like checking your grammar and syntax before you publish a blog post, just with the code.

Why Should You Care?

Do you remember me saying the search engine spiders are not the brightest things?

That’s why.

As they crawl your pages, they read code to interpret what your website is all about. Only then they will index your pages properly. Some mistakes are not too serious, but others CAN and WILL cost you a spot in the search engine results pages (SERPs).

Here’s another reason to consider: have you ever looked at your blog in different browsers? I bet you noticed some discrepancies or, worse, some elements would not display correctly in some browsers altogether. Would you be surprised to learn that those problems can be caused by improper HTML code?

What’s the Solution?

So now that you know there is a problem, what’s the solution? Check your code regularly.

“But Ana, I have no idea how to do that!”

No problem.

Here are 2 easy ways to check your code:

  1. For WordPress blog: install a plugin called Validated.
  2. For any other site, go to http://validator.w3.org/.

How To Correct Invalid HTML Code

That’s where the bad news comes. The best way to correct HTML code mistakes is by hand. So either you learn to do it yourself or you outsource it.

There are some tools out there that claim to fix your code automatically, like HTML Tidy.

My personal recommendation: stay away from them. Or at least make sure you back up everything before you dare to use their “corrected” code. As I tested it out for the purpose of writing this post, HTML Tidy code caused my website to disappear completely.

Bonus Tip:

Did you know that video sites produces invalid embed code?

That’s right: every time you embed a video form YouTube, Vimeo, and others, you add invalid code to your site.

The reason I wanted to mention it is because this is something I CAN help you with.

Just go to http://www.tools4noobs.com/online_tools/youtube_xhtml/, paste your YouTube embed code there and, voila! the tool will spit out a perfectly valid code for your to place on your site.

Don’t you wish the rest of it was this easy?

Question: would you risk your standing in search engines because of the invalid code or would you try to correct it? Answer below in comments!



Tagged as: , , ,

{ 47 comments… read them below or add one }

John Paul Aguiar August 26, 2010 at 3:20 pm

Nice post.. Always good to get a reminder to look under the hood to help your blog run clean.

I like that Youtube tip.. didn’t know they did that..
John Paul Aguiar´s last [type] ..Simple Ways To Increase Your RSS Subscribers

Reply

Ana August 26, 2010 at 5:37 pm

I didn’t know YouTube produced invalid code either.

Given how many websites embed videos…you think they’d make an effort to clean it up!

Thanks for stopping by, John.

Ana
Ana´s last [type] ..3 Unorthodox Ways to Get King-Kong EDU Links

Reply

John Paul Aguiar August 26, 2010 at 5:47 pm

You think right? Guess their to big to be bothered,,lol

Your welcome,, Might have to chase you down more often :)
John Paul Aguiar´s last [type] ..Simple Ways To Increase Your RSS Subscribers

Reply

Dennis Edell from Direct Sales Marketing August 27, 2010 at 12:21 pm

Could they possibly not even know? That wouldn’t be good either, lol, but maybe someone with a little authority (hint hint) just needs to give them a serious head up?
Dennis Edell @ Direct Sales Marketing´s last [type] ..Twitter Weekend part1 – Now Would be a Good Time to Follow Me

Reply

Ana August 31, 2010 at 4:18 am

I don’t think that’s remotely possible, Dennis :) , but it’s a nice thought.

Ana
Ana´s last [type] ..Scribe SEO- Why All The Cool Kids Are Doing It

Reply

pumama August 26, 2010 at 3:41 pm

Validate Blog help your blog friendly with Search Engine
NIce Post!
pumama´s last [type] ..Protect Your Blog from Spam Comments with Akismet Plugin

Reply

Ana August 26, 2010 at 5:39 pm

Exactly the point – the readers who do not want to get listed with search engines are allowed to ignore the post.

Is there anybody out there who would turn down Google ranking? Then the code needs to be cleaned up.

Ana
Ana´s last [type] ..How To Find Out Who Your Blog Fans Are

Reply

Abhishek-seekersfind.com August 26, 2010 at 4:52 pm

Hi Ana Hoffman
You really make some good points.This points are new to me.Post is awesome

Thanks For Sharing
-Abhishek

Reply

Ana August 26, 2010 at 7:10 pm

Glad I was able to introduce you to a new subject, Abhishek. Thanks for coming by.

Ana
Ana´s last [type] ..New Tweet Button- The Good- The Bad- The Ugly

Reply

Kyle August 26, 2010 at 4:59 pm

Awesome post.
I had no idea what HTML validation was until just now, I used to just go by whether or not the page worked.

Thanks
Kyle

Reply

Ana August 26, 2010 at 7:13 pm

Thanks, Kyle – since your page can look fine while your code is still corrupt, I thought it was a good idea to talk about this.

Hope you’ll use it to improve your site.

Ana
Ana´s last [type] ..How To Find Out Who Your Blog Fans Are

Reply

Samuel August 26, 2010 at 5:54 pm

Great post ana, the major probz am having is am a noob when it comes to coding i guess i need to learn it. Thanks for sharing take care.

Reply

Ana August 26, 2010 at 7:16 pm

I am new to this as well, Samuel, but i am learning. Once the learning curve is over, it becomes the second nature.

Ana
Ana´s last [type] ..Is Google Waving Goodbye to Tag Clouds

Reply

Laura Davis from Banking Rates August 26, 2010 at 6:42 pm

Hmmm… I didn’t know that about Youtube codes. I wonder if they do that on purpose or if they’re just too lazy to correct the code. What do they gain by leaving it incorrect?
Laura Davis@Banking Rates´s last [type] ..What Super Mario Can Teach Us About Personal Finance

Reply

Ana August 26, 2010 at 7:18 pm

The scary part is YouTube is not the only one; Facebook “Like” button and the new Twitter “Tweet Button” are not W3 compliant either.

I have no idea why that’s the case. They just use their own proprietary code.

At least, we know how to correct the YouTube code now!

Thanks, Laura!
Ana´s last [type] ..How To Rank Well For Your Inner Pages

Reply

Adam Paudyal August 26, 2010 at 7:46 pm

Yes, exactly Ana….Webmasters do need to check the codes for their websites and even blogs to make sure everything is running good and smooth…

And Thank you so much for the You Tube tip….Appreciate it….

Reply

Ana August 31, 2010 at 4:19 am

Any time, Adam; thanks for stopping by.

Ana
Ana´s last [type] ..New Tweet Button- The Good- The Bad- The Ugly

Reply

Oliver Tausend August 26, 2010 at 8:03 pm

Hi Ana,

I always wonder where you get your information from ;-) awesome. Thanks for sharing that and offering viable solutions to fix the problem.

Take care

Oliver
Oliver Tausend´s last [type] ..Lessons From Robert Kiyosaki’s “Cashflow Quadrant” For My MLM Network Marketing Business

Reply

Ana August 31, 2010 at 4:21 am

:) Good to see you here, Oliver; glad I could amaze you yet again:).

Ana
Ana´s last [type] ..How To Find Out Who Your Blog Fans Are

Reply

Peter Fuller MBA August 27, 2010 at 1:01 am

Another valuable post Ana.

The video embed code tip is priceless.

I am not too sure I am keen on checking my blog for html errors but I will give the plugin a try.

btw your blog picture reminds me of a very nice lady I bought a delicious bowl of noodle soup from in Phuket

Peter
Peter Fuller MBA´s last [type] ..Why Are You Making It So Hard For Me To Share Your Content

Reply

Ana August 31, 2010 at 4:24 am

I am not all too excited about it either, Peter, but the potential problems this can cause with the bots is a good enough reason to get me going.

I’ll take your comparison of me and nice lady in Phuket as a compliment. Where is Phuket anyway?

Ana
Ana´s last [type] ..Big Tips to Get People Retweeting

Reply

Susanna Hess August 27, 2010 at 1:58 am

Thanks Ana,

This information is invaluable.

I do regularly embed YouTube onto my blog so that last tool will be a great help!

Thanks again!

Susanna
Susanna Hess´s last [type] ..8 Seriously Funny Success Tips For Online Marketers

Reply

Ana August 31, 2010 at 4:25 am

I knew you could use this tip, Susanna – glad you stopped by.

Ana
Ana´s last [type] ..On-Page Ranking Factors That Scream or Whisper

Reply

TecRux August 27, 2010 at 5:20 am

Nice Artcle. I’d like to add that every blogger is suppose to know at least HTML if not PHP and CSS because it can come in handy in situations like this.
TecRux´s last [type] ..Giveaway-20 Copies of WinX DVD Ripper Platinum for Windows

Reply

Ana August 31, 2010 at 4:27 am

Very true; learning more about how important proper coding can be to Google rankings made me want to learn more about it.

Ana
Ana´s last [type] ..Is Google Waving Goodbye to Tag Clouds

Reply

Dennis Edell from Direct Sales Marketing August 27, 2010 at 12:26 pm

OK then…..

First, a sincere thanks from me for both the video FYI and the plugin, now installed. I’ve read many a post giving the web address, but no mention of the plugin.

Is it new? or do I need to unsubscribe from several blogs, and subscribe to yours? ;)

Second, I’m sorry to say, you will surely receive hate mail from my blog designer-assistant when I ask her to click the validation link.

I hope she don’t quit. LOL!
Dennis Edell @ Direct Sales Marketing´s last [type] ..Twitter Weekend part1 – Now Would be a Good Time to Follow Me

Reply

Ana August 31, 2010 at 4:31 am

You are very welcome, Dennis.

I am sure your assistant will say thanks to me since you now know how much she does for you to make you life so much easier! Can I hire her as well? :)

Ana
Ana´s last [type] ..On-Page Ranking Factors That Scream or Whisper

Reply

Dennis Edell from Direct Sales Marketing September 2, 2010 at 3:51 pm

I tend to think you’re kidding, but if not i could send her your way?
Dennis Edell @ Direct Sales Marketing´s last [type] ..Welcome To The All New DennisEdellcom!

Reply

Ana September 2, 2010 at 7:11 pm

I was kidding, Dennis, but now that you are willing to share – I’d love it! I could always use help… Thanks!
Ana´s last [type] ..Scribe SEO- Why All The Cool Kids Are Doing It

Reply

Dennis Edell from Direct Sales Marketing September 4, 2010 at 12:45 pm

I do get royalties…
Dennis Edell @ Direct Sales Marketing´s last [type] ..Welcome To The All New DennisEdellcom!

Reply

Ana September 4, 2010 at 2:12 pm
Dennis Edell from Direct Sales Marketing September 7, 2010 at 5:31 pm

I just fell in love with you…
Dennis Edell @ Direct Sales Marketing´s last [type] ..The Official DEDC-Network Comment Policy

Reply

Ana September 8, 2010 at 1:50 am

Now, now, Dennis… :)
Ana´s last [type] ..Mistery of Google PageRank Solved

Reply

Alex August 27, 2010 at 12:29 pm

Ana!

You are everywhere girl! Nice to see you here too. What a fantastic tip, although I have to admit that I am a little upset that you have now brought to light something ELSE that I need to worry about.
But seriously, thanks for the awesome tips, definitely bookmarking this one for future reference.

Reply

Ana August 31, 2010 at 4:32 am

Why, you were thinking of taking a vacation, Alex? :)

Thanks for coming by and letting me know I am doing a good job!

Ana
Ana´s last [type] ..3 Unorthodox Ways to Get King-Kong EDU Links

Reply

David Bain August 27, 2010 at 4:38 pm

So many people are scared of delving into a bit of coding but the reality is that it will improve your knowledge, your skills and your website. I know it’s a learning curve, but it’s worth it. I concur. Do it!

Reply

Ana August 31, 2010 at 4:33 am

Very well said, David, and absolutely agree. A little knowledge never hurt anyone.

Ana
Ana´s last [type] ..Scribe SEO- Why All The Cool Kids Are Doing It

Reply

Hector Cuevas August 27, 2010 at 6:23 pm

Ana, great post

Never thought about HTML validation – now you’ve convinced me to check it.. ahh more stuff to do.. :0)

thanks for sharing
talk soon
Hector
Hector Cuevas´s last [type] ..Top 4 Traits Of A Successful Blogger No- It’s Not About Technology

Reply

Ana August 31, 2010 at 4:35 am

I know, Hector – my to-do list never gets done either.

I think we should rename it a “wish I could do it” list.

Ana
Ana´s last [type] ..On-Page Ranking Factors That Scream or Whisper

Reply

Heather C Stephens August 28, 2010 at 12:16 pm

Hi Ana,

Thanks for the helpful information on the video code. It feels like a lot of this html stuff is above my head, so I love a site that easily fixes it all for me! I agree, I wish it was all this easy!

Heather
Heather C Stephens´s last [type] ..Is Focusing on Mompreneurs and WAHMs Cutting My Audience In Half

Reply

Ana August 31, 2010 at 4:37 am

I know, Heather… Of course, if internet marketing was this easy, everyone would be doing it, but lucky for us, only those who are willing remain standing.

Glad you stopped by!

Ana
Ana´s last [type] ..Is Google Waving Goodbye to Tag Clouds

Reply

Dean Saliba August 29, 2010 at 3:21 pm

I had a quick check and both my blogs have over 100 errors each, most of them referring to ‘element “BR” undefined’ so I think I will have to set aside a day and find out what this means and fix them.
Dean Saliba´s last [type] ..2 Things You Probably Didn’t Know You Can Do With Google Analytics

Reply

Ana August 31, 2010 at 4:38 am

Well, the good news is once you learn how to fix that error, most of your code problems will be gone.

Thanks for the comment, Dean.

Ana
Ana´s last [type] ..How To Rank Well For Your Inner Pages

Reply

Ana August 31, 2010 at 4:28 am

:) Very well said. Coding is not difficult… once you know what you are doing!

Ana
Ana´s last [type] ..How To Rank Well For Your Inner Pages

Reply

Dan Lew September 26, 2010 at 3:16 pm

Nice creative post, I didn’t know about the valid html for youtube code, that’s fantastic to know, thanks for that!
Dan Lew´s last [type] ..5 Powerful Ways To Make Money Online Indirectly

Reply

Ana September 27, 2010 at 12:56 am

You are very welcome, Dan; the pleasure is all mine.

Ana
Ana´s last [type] ..Picture This- 5 Stages of Blogger’s Life

Reply

How To Attract New Customers September 29, 2010 at 3:50 am

This site one of the best dang sites I have come across…you are full of amazing info.

I just found so many mistakes with my site–using validated.org

Many thanks to you .

Reply

Leave a Comment

Commenting Policy: Do not use just "keywords" for Name, you must leave a real name, but you can use name@keywords if you like. All comments subject to moderation.

CommentLuv badge

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

 Get our MMO Tips directly in your Inbox 

Previous post:

Next post: