Web Standards : Top Tips to Validate XHTML

Published September 12 2004, 19:16 pm by Neerav Bhatt
  1. Specify a DOCTYPE
  2. Specify the Character Encoding
  3. Write all HTML tags and Attribute Names in lower case eg: use table not TABLE and use height="1″ not HEIGHT="1";
  4. Encode HTML character entities like the ampersand character & properly, always use & in place of &
  5. Quote all attribute values even those that are numeric eg: use <td rowspan="3"> not <td rowspan=3>
  6. Empty tags like <hr> and <br> must be replaced with <hr /> and <br />. Note: older versions of Netscape cant interprete the <br/>
    tags. Typing a space before the / in <br /> fixes this problem.

Contact Us

If you found this article useful contact us to see how our consulting services can help you with "Web Standards : Top Tips to Validate XHTML".

Further Reading