Alt attribute will not show text when mouse is over image

O.K. I a trying to add the alt attribute to the img element.

The example to me is a little confusing it shows an img src name set to # and an alt value of a field of yellow flowers. I am assuming that to add the alt attribute to this image I just place the alt value at the end of the img element. I am assuming that because the src value is already named with the url that I do not need the src="#" value in my code.

What have I missed in this exercies?

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

That's a big bear

<do not remove the three backticks above>

it’s not good to use alt attribute as a tooltip use title instead.

it’ll only work in internet explorer 7 or earlier version as a tooltip when mousing over the image.

For more information see here and here

1 Like

Thanks RC, I finally found a youtube video that showed me another example. If you mis-name your image it shows your alt text where the image would be. I get it now. Thanks for the quick reply.

1 Like