Build a W3C HTML 4.01 Standard Website

Here is some common mistake in coding:

  1. Cannot miss single co ‘ ‘ and double co " "
    • <img src=" bg.gif" width="140" height="30" alt="text">
  2. html tag should be closed
    • <table><tr><td></td></tr></table>
  3. html <img> tag should included " alt=”xxxxx” " as description of the image
    • <img src="xx.gif" alt="It’s a image.">
  4. non html tag special char, e.g. < > &, should use it’s code to represent
    • < &lt
    • > &gt
    • <a href="foo.cgi?chapter=1&amp;section=2">
  5. css style should put inside <head> </head> with <style type="text/css">
  6. correct include / import javascript in html should
    • <script type="text/javascript"></script>
    • <script type="text/javascript" src="script.js"></script>

Referance by:
W3C HTML 4.01 Specification
W3C HTML Markup Validation Service

Additional Referance:
CSS Validation Service (en)
HTML: Special Characters

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.