src attribute kiten image

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

  **Your code so far**

<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>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="not be empty.">
</main>
<img src="relaxing-cat.jpg">



  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

The main problem is, you are using the incorrect link . The instructions clearly ask you to use the correct link. Also read the other instructions and correct the alignment of your code.

Use the correct link provided in the instructions in your img src area.

Here’s the link if you want -
https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

While it sure is awesome making pages the way you want it to be , while learning, you must follow the directions provided to you, otherwise the tests will not pass. Hope this helped : )

Hello @routpusparani4838,

There are few issues in your code. First, you don’t need to have two img tags in your code so I suggest you to delete that one, at the end of your code:

<img src="relaxing-cat.jpg">

Second thing, look where you put the image:

<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>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="not be empty.">

The exercise says: insert an img element before the existing p elements.
In your code, the image is after the p tags.

Third, the value of your src attribute inside the img tag. The exercice says:
Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Your link comes from the course example. Hope it helps you

according to your code you are defining two images in your code use only one image in your program
there is another error in the code insert image before p element. You can perform so many operation on images in css flip image,rotate image horzontally or vertically .

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