I'm trying to add a photo but something is wrong with the link...they say the ALT can't be empty but I don't understand what it mean... sorry complete newbie

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://www.bit.ly/fcc-relaxing-cat"=alt ="relaxing cat.">

<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 (Linux; Android 11; SM-A326B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

1 Like

Your final code will look like this :point_down:
<img src="https://www.bit.ly/fcc-relaxing-cat alt=“relaxing cat.”>

1 Like

Hi @shellyfel !
<img src="https://www.bit.ly/fcc-relaxing-cat"=alt ="relaxing cat.">
Here right after the the link you have a = .It’s not supposed to be here.

2 Likes

you dont need = in front
and you dont need . in relaxing cat

2 Likes

alt or also known as ALTERNATE tag will contain text element which is usually shown when the image has failed to load in the site or any issues in displaying the image.

<img src="path" alt="This text will show when my image fails to load">

Looking at your code you have an extra = just after the path

<img src=“https://www.bit.ly/fcc-relaxing-cat”**=**alt =“relaxing cat.”>

The correct code is as follow,

<img src="https://www.bit.ly/fcc-relaxing-cat" alt ="relaxing cat">
1 Like

Thank you for explaining, it’s worked x
I’m still learning the basics :slight_smile:

Thank you for your help!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.