conform to W3C and validation


In case you haven't noticed, I have this image on the bottom of every page in my website. This image represents and indicates that my website's html conforms to W3C XHTML rules and validations.

What does this really mean?
Well, this means that I have followed very strict rules on how html should be written for a website according to W3C, which is an international community that develops standards to ensure the long-term growth of the Web.

And what good is that?
Well, this means that my website will look very similar (if not identical) across different types of web browsers and that I haven't mis-used any html in a way that certain browsers, which follow W3C standards, does not understand.

It is not really a big deal to violate the W3C standards since most browsers are smart enough to understand or ignore the mis-use of html but me being a web application architect for a consulting company cannot allow any errors in the html code that I write.

If you click on that image on the footer of any pages in this site, you should see a Passed result without any errors from the W3C Validation Service.

Last night, I incorporated Amazon ads in my website and I could not believe how many errors it introduced on my website. Although it looked fine without any issue on the browser, W3C Validator indicated that there are over 50 errors/violations on my web page as a result of adding amazon ads. Unbelievable....
I ended up spending hours to clean up the Amazon's ad code because I would be too embarrassed to put that image on my website with those violations.

All of my web pages are written in XHTML format. XHTML is very similar to HTML 4.01 standard except that it is much more strict on properly closing the tags in the correct orders, similar to XML conformation. If you want to know more details on how XHTML is different from HTML, check out

It was not easy for me to adjust and conform to XHTML rules and I still forget or make mistakes time to time. Here is the most common mistakes that people, including myself, make on XHTML document (some of the rules are derived from HTML 4.01 rules):
  1. <br> should be properly closed as <br/>
  2. stand-alone attributes should always have value. <td nowrap> should be <td nowrap="nowrap"> and same goes for selected, checked, and readonly stand-alone attributes.
  3. "alt" attribute is rerquired for <img> tag and should also be properly closed. <img src="picutre.jpg"> should be <img src="picture.jpg" alt="" />
  4. all <input> elements should be properly closed as well. <input type="text" name="email"> should be <input type="text" name="email"/>
  5. <form> tag should be outside of <table> tag, not inside the table.
  6. missing "type" attribute for <style> and <javascript> tags.
  7. missing "" for attribute value, e.g border=0 should be border="0"
  8. &amp should be used instead of &, including the parameters in a URL
  9. all tag and attribute names must be in all lower-cases. <BODY> or onMouseOver are not valid tag/attribute names.
  10. "absmiddle" is no longer a valid for align or valign attributes.
  11. No more background attribute for <td> tag; use style="background-image: url();" instead
Do you have a personal website?
If your browser doesn't have HTML validation tool, go to and enter the address of your website or any specific pages or even the websites that you know of. If it has less than 5 errors then that's really an impressive website!
Go Back to List Page

This post has 1 comments

Name : Comment : view emoticons
Please consider signing up for our website.
If you sign up and log in:
  •   You can avoid the "I'm not a robot" captcha when commenting
  •   You can also avoid typing your name every time
  •   You can upload a picture for each comment
  •   You can change or delete your comment within 1 hour
  •   You can track all the comments you posted on this site
  •   You can read blog posts that are only open to members
  •   You can look up blogs using the search feature
  •   More privileges for our friends & families coming...

OK, Sign me up!

Emoticons are a great way to visually express how you feel.
However, there are times when unintended content is converted to emoticon because the content happens to have one of the emoticon symbols. That's why it's always good idea to preview your comment before posting and when you see this type of problem, you can indicate NOT to auto convert.