Temple College Logo R. Craig Collins >Common > How To: Check for errors in HTML

How To: Check for errors in HTML © R. Craig Collins, 2005

  1. Make sure you are starting with
  2. You only use <body> </body> once, and all the items to display in the main browser window go in between.
  3. When constructing a web page in HTML, it is important to build up your page one item at a time; not all at once, and not in a linear fashion. That is, don't start typing from start to finish, then look at the browser.
  4. Be careful spelling; if copying something, make sure it is plain text and don't use word processors.
  5. Separate components with a space
    <tag attribute="value" attribute="value" attribute="value"> </tag>
  6. When looking at a web page's code, the error is almost always above where it starts to look wrong in the browser. A bug chunk of a web page will disappear if you miss a " earlier in your code.
  7. You only use <body> </body> once, and all the items to display in the main browser window go in between.
  8. Many times you have compound mistakes (if you don't add a piece at a time, as recommended)... fix them one at a time, and test the code before moving on.

Common problems in Web Design labs
Files names
Files with incorrect file names (labs have specified file names)
If you have not set your computer correctly, as shown in the Orientation, FAQ, and the top of the practice web page, you may wind up with files named
page1.htm.htm instead of
because your computer is hiding part of the filename.
My notes also say not to use upper case letters or spaces in filenames.

You are not zipping files, or are complaining the zip breaks the file
How to zip is included on the lab web site, and at http://www.templejc.edu/prodev/media/zip/zip.html
A zipped page does not function correctly until I unzip it.

Spaces between quotation marks
You cannot put extra space within quotation marks...
"white " is not the same as