I cant get through this one. I think im doing everything right

Tell us what’s happening:
Ive done everything on the list but it still says "Your image should have a src attribute that points to the kitten image. "

  **Your code so far**

<img src="https://www.freecatphotoapp.com/your-image.jpg"alt="A business cat wearing a necktie"/>
<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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Hi there. You have a forward slash “/” at the end of your img tag. Remove it and it should work.

1 Like

Nope not working. I dont think thats the problem

Put a space before alt

Hi @praneetbera131 !

Welcome to the forum!

Your url is wrong

Reread the instructions to use to correct url
Now set the src attribute so that it points to the url https://www.bit.ly/fcc-relaxing-cat

In the instructions the link i typed in was the one told to

And anyway it doesnt work

This is not the link from the instructions.

That was the link from the example.

The link from the instructions is this one
Now set the src attribute so that it points to the url https://www.bit.ly/fcc-relaxing-cat

Been there done that

Can you post your latest code in the forum?

Either it is an issue with your browser or there is still an error in your code.

We won’t know unless we see your latest code and test it on our ends.


When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

You also need to put the image in the right place, within the main tags and before the p tags

1 Like

That’s true too.

It looks like the tests for this one are a little lax if you have it outside the main tags.

<h2>CatPhotoApp</h2>

<main>

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

When I get rid of the space it passes for me

thank you so much it finally passed

1 Like

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