Learn HTML by Building a Cat Photo App - Step 15

For some reason it continues to tell me that my anchor element should link to https://freecatphotoapp.com and that I’ve either omitted it or that I have a typo. However clearly I have the link here, so not sure what the issue is.

Your code so far

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

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

Link to the challenge:

Welcome to our community!
The instruction is: "Turn the image into a link by surrounding it with necessary element tags. "
Please take a look at what you have done in the previous step, surrounding “cat photos” with ‘a’ tags - the code is above the headline of the “step 15” challenge.
This is just an example of what is required:
<a href="url"><img src="URL"></a>

unfortunately i followed this advice and i’m still getting the same error message.

href is an HTML attribute.

It needs to go inside the anchor opening tag.
You can see an example of this in step 11.

As for the closing anchor tag, it needs to move to the right of the img in order to enclose the img within it. That way the browser can understand that everything between the opening and closing tag is clickable.

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