Forum Moderators: open
I'm using the HTML 4.01 Transitional
Here is the first error I'm getting:
Error Line 50 column 25: there is no attribute "BACKGROUND".
<td width="7" background="layoutimages/menuleft.jpg"></td>
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.
And all of the other problems are telling me required attribute "ALT" not specified. But the thing is I don't want all of my images to have alt text.
Thanks for the help.
When the validator says this:
there is no attribute "BACKGROUND"it means that the TD element cannot have a background attribute.
[w3.org...]
And since all image must have an alt attribute, simply apply an empty attribute to each one.
[w3.org...]
Do not specify irrelevant alternate text when including images intended to format a page, for instance, alt="red ball" would be inappropriate for an image that adds a red ball for decorating a heading or paragraph. In such cases, the alternate text should be the empty string ("").