Css Problem

He has: 8 posts

Joined: Mar 2004

I did a CSS check and found many many errors. How would I ever go about correcting these.

This is the validator I used http://jigsaw.w3.org/css-validator/

1.Line 95, column 233: required attribute "ALT" not specified

..19" border="0" src="imgs/sitemap.gif">
It is showing the > tag after gif" is missing. Is there something I'm missing here? We don't have an image on this page. So what is the "imgs/sitemap.gif" referring to? We have many errors showing basically the same with the > tag missing. I don't know where to find the problem.

I know its a mess, we've got our work cut out!!!!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

You need to learn how to read the validator! Smiling It tells you what line of your code the problem is on, and quotes a few characters from that line. Use a text editor to find the problem by line, or use your knowledge of the page (i.e. that's clearly the image for the link to the sitemap!) to find it.

It tells you what the error is in the same line as the WHERE the error is -- it's not that there is a > missing! It's that you don't have the required alt attribute in the img tag...

<A href="http://www.decorating-country-home.com/sitemap.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','imgs/sitemap-over.gif',1)"><IMG name="Image19" border="0" src="imgs/sitemap.gif"></A><BR>
'

Should be:

<a href="/sitemap.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','imgs/sitemap-over.gif',1)"><img name="Image19" width="130" height="26" border="0" src="imgs/sitemap.gif" alt="sitemap"></a><br>
'

No, no, you did not use the CSS validator to get this error. HTML ERRORS

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.