Surrounding elements and tags

Tell us what’s happening:
Describe your issue in detail here.
please help step 14

  **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>
   <a href=" <a> herf= "https://freecatphotoapp.com" target="blank"
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying 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/102.0.0.0 Safari/537.36

Challenge: Step 14

Link to the challenge:

1 Like

Hi @Jonny1

Try always to explain in detail your problem and even copy the error message your are getting. It is easier to help.
You did a few typos in your code. Check this:

Try always to read carefully instructions and code. :wink:
Happy coding!

1 Like

hi, just put the opening anchor element at the start of the image tag and put the closing anchor element at the end, like this:

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

hope it helps.!

thank you for the help! Much Apricated

1 Like

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