Says to add an src attribute, thought I already had one

Says to add an src attribute, thought I already had one
0

#1

Tell us what’s happening:

Your code so far


<img> src=https://bit.ly/fcc-relaxing-cat" alt="relaxing cat"</img>
<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 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/add-images-to-your-website


#2

Have a careful look at this one.
“src” attribute should be inside <img> tag.


#3

src is an attribute of img element.
In order for your image to work, you have to include the src within your img element.
<img src=https://bit.ly/fcc-relaxing-cat" alt="relaxing cat></img>"
In your code, you have closed the img <img> element without including the src to link to the image.


#4

Thanks again, sorry I am asking so may questions!


#5

You do need to apologize.
Asking questions is first sign that you are learning.
We are more than happy to help you.
Just, continue learning.
All the best.
Cheers.:+1: