How do i turn an image into a link, using "https://freecatphotoapp.com as the anchor href

Tell us what’s happening:
Describe your issue in detail here.

  **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 <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"</a></img>
  </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.5005.115 Safari/537.36

Challenge: Step 14

Link to the challenge:

This is incorrect syntax. I suggest restarting the step.

Here’s what they mean by surrounding an element to another:

<main>
  <h1></h1>
</main>

Here, the main tag is surrounding the h1 tag.

The next thing you should do is give the anchor tag an href attribute with a value of https://freecatphotoapp.com


Let me know if this was confusing and I won’t hesitate to explain further!

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