Click to See Complete Forum and Search --> : W3C Validator...


weee
09-07-2004, 03:27 AM
I'm trying to validate the page I built and I'm getting those two mistakes tht I can't fix.


1.

Line 129, column 249: an attribute value must be a literal unless it contains only name characters

...href="products.asp" onmouseover=popup("products") onmouseout=popdn()>Products

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

--------------------------------------------

2.

Line 129, column 278: an attribute value must be a literal unless it contains only name characters

...er=popup("products") onmouseout=popdn()>Products</a><span class="saperatorMen


How can I fix it?

Thanks!

Fang
09-07-2004, 03:41 AM
Use of/nesting quotes:
...href="products.asp" onmouseover="popup('products');" onmouseout="popdn();">Products

weee
09-07-2004, 03:46 AM
Here's the last one tht I have... maybe you'll know what's wrong with that:


Below are the results of attempting to parse this document with an SGML parser.

Line 123, column 74: there is no attribute "BACKGROUND"

..."0" cellspacing="0" width="760" background="imgs/menuLine.jpg">

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.


Thanks!

Fang
09-07-2004, 03:55 AM
Should be defined in css so remove it from the html.
#tableID {
background:[color value] url(imgs/menuLine.jpg);
}

weee
09-07-2004, 04:04 AM
now it's valid ;)