Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening: Hi all, I’m trying add SRC attribute to img element to specify an image’s URL and it me error: “Your img element should be closed either with > or />” I tried closing my element with both > and /> and I get the same error

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>
      <img SRC="HTTPS://CDN.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
    </main>
  </body>
</html>

Your mobile information:

SWIFT_4G - Android 13 - Android SDK 33

Challenge: Learn HTML by Building a Cat Photo App - Step 8

Link to the challenge:

Hi and welcome to the community!
Make sure you are using the src attribute of the element. Attribute names in HTML are not case-sensitive, but writing them in lowercase is better.
Take a look at your link inside the src. Make sure it’s the same as the link given to you.
Good luck!

I got code error saying my img element should be close by >or/> I am using it its not going

hi @anni2aeti

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 Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

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

Mine is not going through I did code as showing

we can’t help you if you don’t create your own topic, please create your own topic with your code