by Steve MacLellan » Fri Mar 02, 2007 8:50 am
I think you need to have a better understanding of html. For example, the warning from the validator that says:
No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.
...means you aren't using a valid DocType. This is an important and required element for a web pages.
For example, your DTD (Document Type Declaration):
...should be:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
...and you need to have those invalid attributes deleted from your HTML element. You have it as:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
Just delete the above line. You already have another HTML element opened below it. That would take care of about 5 errors.
Error Line 12 column 6: required attribute "TYPE" not specified.
<style>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
So change the style element to read like this:
<style type="text/css"><!--
put your mark-up here
--></style>
Then we move down to where you main table is. You've got a <center> tag opened you don't need as well as a <div =align=center> You can get rid of both of those, including the closing tags that match and add an align=center attribute and value to your <table> tag. But this isn't what the validator is complaining about... it says:
Error Line 47 column 105: there is no attribute "HEIGHT". So you need to remove this attribute from your main table.
Errors 8-11 are complaining about the use of bordercolorlight and bordercolordark, because these were never valid attributes for html. They were introduced as Microsoft browser attributes only, and were never supported by the W3C. You can remove them.
Error 12 says: Error Line 64 column 64: required attribute "ALT" not specified.
ALT tags are required. They give a description of the image, for those who cannot see it.
Error 13 says: # Error Line 252 column 7: "HTML" not finished but document ended.
</html>
This problem will be fixed automatically if you removed the second HTML element in the head of the document:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
This fixes these problems. That doesn't mean that once these are corrected and you re-validate it that there may not be other errors.
For example you have a number of deprecated elements (like <center> and <font>. Deprecated means they may no longer be supported and should be replaced with new constructs using CSS.
You should also consider moving away from HTML 4.01 and learn to start marking up your documents using XHTML.
Best Regards,
Steve MacLellan