Jump to content

Problems with alt tag in validator


mauddib3qez

Recommended Posts

Hi,

I'm have problems with the validator kicking out this error:

 

Line 156, Column 103: there is no attribute "alt"

…s/DB3-AG9.jpg" rel="lightbox-a_e" alt="AG9 (Apple Green on Chartreuse)[2]" ######…

for this page:

 

http://thecolorsofbagleys.com/a_e.html

 

I am having similar issues with the following pages:

 

http://thecolorsofbagleys.com/f_h.html

http://thecolorsofbagleys.com/i_t.html

http://thecolorsofbagleys.com/u_9.html

http://thecolorsofbagleys.com/spec_undoc.html

 

I've tried different things, but can't make the error go away. What gives?

 

Thanks,

Mike MetzlerThe Colors of Bagley'shttp://thecolorsofbagleys.com/

Link to comment
Share on other sites

The alt attribute is alternate text used for images if they couldn't load. Perhaps you wanted a tooltip to appear next to the mouse when on the element, that would be the title attribute.

  • Like 1
Link to comment
Share on other sites

The alt attribute is alternate text used for images if they couldn't load. Perhaps you wanted a tooltip to appear next to the mouse when on the element, that would be the title attribute.

Are you saying there is no need for the alt tag because the title tag does the same thing?

 

Thanks,

Mike

Link to comment
Share on other sites

<ul> <li><a href="http://thecolorsofbagleys.com/images/WebsiteColors/DB3-AG9.jpg" rel="lightbox-a_e" alt="AG9 (Apple Green on Chartreuse)[2]" title="AG9 (Apple Green on Chartreuse)[2]">AG9</a></li> <li><a href="http://thecolorsofbagleys.com/images/WebsiteColors/LG2.jpg" rel="lightbox-a_e"  alt="AG9 (Apple Green on Chartreuse)[?]" title= "AG9 (Apple Green on Chartreuse)[?]">AG9</a></li>  <li><a href="http://thecolorsofbagleys.com/images/WebsiteColors/DB1-A2.jpg" rel="lightbox-a_e" alt="AM4T (Aquamarine on Pearl/Tiger Stripes)[8]" title= "AM4T (Aquamarine on Pearl/Tiger Stripes)[8]">AM4T</a></li> <li><a href="http://thecolorsofbagleys.com/images/WebsiteColors/AN4.jpg" rel="lightbox-a_e" alt="AN4 (Anchovy on White)[7]" title= "AN4 (Anchovy on White)[7]">AN4</a></li>...

I see alt attributes applied to <a> anchors.

  • Like 1
Link to comment
Share on other sites

Are you saying there is no need for the alt tag because the title tag does the same thing?

 

Thanks,

Mike

They have two different purposes. The title attribute shows a tooltip, the alt tag provides a text description of an image just in case it didn't load.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...