Learn HTML by Building a Cat Photo App - Step 8

I’m trying to use the scr attribute with a URL but the course says it’s wrong. I don’t know what is wrong though.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img> src https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

<!-- User Editable Region -->

    </main>
  </body>
</html>

Hey there, the source attribute and url need to be inside the img tag
Also, don’t forget to put the equal sign between src and the url

3 Likes

I am also having the same problem, I’m trying to set the src attribute with the URL but it’s wrong

CatPhotoApp

Cat Photos

See more cat photos in our gallery.

This is where I have gone so far

You have to put the src=URL in the <>

Sure it’s gonna work
Have you tried doing it

I tried it and it worked

1 Like

Ok I’ll try it
Thanks :heart::smile::blonde_woman:

Please dont use another user’s topic for help with your own code

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Ok thanks :blush::heart::heart: I will try