The alt is not working

On the kitty post thing I am on the part with the alt for your photo link and it is saying that I do not have an alt when I do.

<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>
  <img  cat src=https://bit.ly/fcc-relaxing-cat alt=relaxing cat /> 
  <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>

<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>
<img  cat src=https://bit.ly/fcc-relaxing-cat alt=relaxing cat /> 
<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 (X11; CrOS x86_64 13421.73.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.112 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

1 Like

Hi @the420hick, try adding speech marks around the alt= value…

You have to wrap the attributes in quotation marks.

<img alt="I want to be wrapped in quotation marks" src="metoo.jpg" />
1 Like

when I do that, the photo doesnt show up

<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>
  <img src=¨https://bit.ly/fcc-relaxing-cat¨ alt=¨relaxing cat¨ /> 
  <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>

This dosnt work, there is still an X in the alt progress box and now the photo doesnt show up

Hi @the420hick. I suspect you are not doing it right. It should look like:

 <img src='https://bit.ly/fcc-relaxing-cat' alt='relaxing cat'> 

Compare this img tag and the one you are submitting.

<img src=´https://bit.ly/fcc-relaxing-cat´ alt=´relaxing cat´ />

<img src=¨https://bit.ly/fcc-relaxing-cat¨ alt=¨relaxing cat¨ />

This doesnt work ether

Are you sure you are using quotation marks?

yeah, I dont get why it isnt working

Well you are not using quotation marks. Otherwise if you were, it would look like below.

you used these right

¨
¨

I don’t think so. On most keyboards it is SHIFT + 2 or SHIFT + '

the what I did

shift + ´

Just copy and paste the code below to replace everything and let me know what it gives.

<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>
  <img src="https://bit.ly/fcc-relaxing-cat" alt="relaxing cat">
  <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>

you only need alt = “relaxing cat” and run the code

It seems you are using this key

ASCII code 249 = ¨ ( Diaresis )
Instead of
ASCII code 34 = " ( Double quotes ; Quotation mark ; speech marks )

Depending on the font, they could look very similar when typed out. Also, it could be dependent on your keyboard layout or how it’s being accessed.

As noted by @nibble SHIFT + ’ should provide the right key.

Hi, according to your screenshot, this is an ASCII issue. There is slight difference in the quotation marks you used and the ones needed in the correct answer:
You have “” which are left/right quotation marks
Instead it should be “” which are quotation marks with no direction

Hi, in this screen shot you didn’t use right closing tag mark.
instead of this:

<img src=" " alt=" "/<

try this

<img src=" " alt=" " >