Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
I just Can’t seem to put the anchors in right, no idea where I’m going wrong, also this course does not seem very good at providing the necessary information from one step to the next, its like all of a sudden I’m tasked with doing something that is clearly not explained. just confused.
Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15

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

Link to the challenge:

You need to put the closing anchor tag </a> after the image element.
I hope this helps.
Thank you.

thank you for your help , still can’t seem to make it work. tried that.

This course is one of the best. It is supposed that you pay attention to what you have already done, just like in this example. The line from the code you have posted here:

<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

explains very well how to make a link from anything (in this case the words “cat photos” are hyperlinked).

If you want to turn an img element into a link follow the rule:

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

This is just guidance.

thank you very much, working on it.

1 Like

after the <img></a>. This is how it should look. After the <img> element you’re missing the closing anchor tag </a>. Once that’s added , it should work.
The anchor element should be wrapped around the image element. In order for the image to be a hyperlink, you need to do the following;
<a href=" value goes here"><img src="value goes here"></a>

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