I want to know how to add the src attribute image tag

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img src="../images/cat.jpg"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 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

You’ve missed one requirement:

Now set the src attribute so that it points to this url:
https://bit.ly/fcc-relaxing-cat

Simply change the src for the image given below

…/images/cat.jpg is used when you have your images in your computer folder. You can simply access the files in your working folder. Otherwise you use a Image link in the src attribute.

Here is the code for you

type or paste code here
<h2>CatPhotoApp</h2>
<main>
<img src="https://bit.ly/fcc-relaxing-cat" alt="Author standing on a beach with two thumbs up.">

  <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>

Facing same issue…even though i did add the src

Just change the src to :point_right: https://bit.ly/fcc-relaxing-cat . I just posted the code above.

1 Like