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:
- For WordPress blog: install a plugin called Validated.
- 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!
Related Posts.
Tagged as: Blogging, root canal, validation, website




{ 47 comments… read them below or add one }
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
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
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
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
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
Validate Blog help your blog friendly with Search Engine
NIce Post!
pumama´s last [type] ..Protect Your Blog from Spam Comments with Akismet Plugin
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
Hi Ana Hoffman
You really make some good points.This points are new to me.Post is awesome
Thanks For Sharing
-Abhishek
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
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
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
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.
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
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
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
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….
Any time, Adam; thanks for stopping by.
Ana
Ana´s last [type] ..New Tweet Button- The Good- The Bad- The Ugly
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
Ana
Ana´s last [type] ..How To Find Out Who Your Blog Fans Are
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
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
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
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
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
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
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
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
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!
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
I do get royalties…
Dennis Edell @ Direct Sales Marketing´s last [type] ..Welcome To The All New DennisEdellcom!
Business is business.
Ana´s last [type] ..17 Traffic Building Tips from Some of the World’s Most Popular Bloggers
I just fell in love with you…
Dennis Edell @ Direct Sales Marketing´s last [type] ..The Official DEDC-Network Comment Policy
Now, now, Dennis…
Ana´s last [type] ..Mistery of Google PageRank Solved
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.
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
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!
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
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
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
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
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
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
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
Ana
Ana´s last [type] ..How To Rank Well For Your Inner Pages
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
You are very welcome, Dan; the pleasure is all mine.
Ana
Ana´s last [type] ..Picture This- 5 Stages of Blogger’s Life
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 .