Using the W3C Valditor Service
The World Wide Web Consortium (W3C) provides a Validation Service that will tell you if your page meets the W3C HTML 4.0 Recommendations. You should include the lines
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd" >as the first two lines in your html file for the validator to work correctly.Here are a few suggestions to avoid some of the more common errors reported by the Validation Service.
- Always include the HEIGHT , WIDTH , and ALT attributes in an < IMG > tag.
- Every < SCRIPT > should include a TYPE attribute. For example, your JavaScripts should look like < SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" >.
- If you use a background image to create a stripe down the left side (like on this page), you should not include the page in < UL> < /UL > tags, but you should use < BLOCKQUOTE > < /BLOCKQUOTE > instead.
If your pages do meet the W3C recommendations, then you can include a spiffy like graphic on your page like the one at the bottom of this page. Even if your pages don't pass the W3C specs, it is still nice to know where the potential problems in your pages may be.
Comp 106 Home | T. Ratliff's Home
Layout by Tommy Ratliff, tratliff@wheatonma.edu
Wheaton College, Norton, MassachusettsLast Modified:
![]()