Learn HTML by Building a Cat Photo App - Step 14

I have been trying to solve this code. I can’t seem to figure what is wrong. I checked Google and copied the code, but also this doesn’t work. Can anyone help me out?

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->

<p> click here to view more <br></p>
<a target= '_blank'href='https://freecatphotoapp.com'><img src='https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg' alt= 'a cute orange cat on its back'
></a>
  </main>
</body>
</html>
  **Your browser information:**

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

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

Link to the challenge:

I’m having the same problem! I’ve tried everything

Should the <br> element be in the code?

you have to add two anchor tags in this code. one to turn “cat photos” in alink in p element and the other with img element to turn the image into a link.

hello Vanessa, welcome to the forum.

If you still need help, my suggestion is to click on the Restart Step button because right now your code has been modified and to undo the modifications will take longer than just teaching you what to do from the start.

Once you restart, you are given exactly this line of code (which is an img):


      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

All you have to do to turn this image into a clickable object is to add the opening anchor tag on the left hand side of the img line and the closing anchor tag on the right-hand-side (after the img).

Make sure you use proper syntax for the opening and closing tag (which I think was taught in step 10)

Let us know if you need more support.

hello, welcome to the forum.
Please click on the Ask for Help button in your challenge page.
Then fill out the field for your question and it should open a new topic for you to discuss further steps/help here in the forum.
(or if you want to just search for help by reading other people’s posts, that is fine too but please try not to post a response unless it is to help the original poster or to provide some kind of support to them.

thanks

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