After realising the importance of "validating" my XHTML document, I'm going through the validation process by trying to validate each of my HTML page.
Couple of problems that was beyond me includes:
# Error Line 11 column 8: there is no attribute "name".
<a name="top"><img src="about.gif" alt=""/></a>
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
✉
# Error Line 162 column 73: there is no attribute "border".
...ref="#top"><img src="top.gif" alt="" border="0"/></a></span>
✉
# Error Line 170 column 17: there is no attribute "language".
<script language="javascript">
✉
# Error Line 170 column 29: required attribute "type" not specified.
<script language="javascript">
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>.
# Error Line 181 column 5: document type does not allow element "br" here; assuming missing "li" start-tag.
<br /><br />
✉
# Error Line 183 column 3: document type does not allow element "li" here; missing one of "ul", "ol" start-tag.
<li><span class="boldText">Beer Stein/Mug:</span><img class="right" src="drinkwa
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
My website is: http://homepage.ntlworld.com/darsh25/alcohol.html
1st problem is about the "top" image link which can be clicked to reach the top of the page (available on every single page). How do I overcome this problem and still able to reach at the top of the page using a link at the bottom of the page ??? (this is with About.html)
2nd problem seems to be from the "javascript" that states the "automatic update date" of the page. Can't I use javascript in CSS document ??? (this is with About.html)
3rd problem seems with the use of <br/> since I need some space. (this is with Alcohol.html)