Alt tag not working

Hi,

I’m on this HTML lesson, It looks like I’ve done everything right but the code isn’t being accepted. It won’t accept the alt tag. Is there something wrong with my alt tag code?

Thanks

Your code so far


<img 

src=“https://bit.ly/fcc-relaxing-cat”
alt=“cat relaxing”

>

<h2>CatPhotoApp</h2>
<main>
  
  
  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (iPad; CPU OS 11_0_2 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A421 Safari/604.1.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-images-to-your-website/

It might be, because you are using wrong quotes. Instead of this “cat relaxing”, try this “cat relaxing”
Full solution:

<img src="https://bit.ly/fcc-relaxing-cat" alt="relaxing cat">
<h2>CatPhotoApp</h2>
<main>
  
  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

word order is very important, “Hello, world.” is not the same as “World, hello.”

Make sure that smart quotes are turned off for coding.

1 Like