Step 14 Learn HTML by Building a Cat Photo App HELP

Tell us what’s happening:
Describe your issue in detail here.
Hi guys, I need help with understanding this. I have tried many solutions to solve this step, Step 14, Learn HTML by Building a Cat Photo App and I fail to do so and I keep recieving this hint, Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> . This is what I have done so far…

  **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 <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Step 14

Link to the challenge:

The challenge wants you to convert the image into a link by wrapping the img tag with an ancor tag like so:

<a href = "">
  <img src = "">
</a>

So are we to remove the <a from in front of target?

Not necessarily, the order in which target and href are placed don’t really matter the ancor tag still works either way.

1 Like

Thank you! I was able to figure it out.