Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
i dont understand what i am supposed to do her

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 -->

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

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.52

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

Link to the challenge:

The problem is you are trying to add a link inside of your image, but the directions say
" Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value." You need to wrap the image tag in the anchor tag. You currently are wrapping the anchor tag in the image tag

In other words the anchor tag needs to be outside the image to clear it up a little

1 Like

Tell us what’s happening:
Describe your issue in detail here.
i dont understand what i am supposed to do in step 15

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 -->

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

<!-- User Editable Region -->

    </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/109.0.0.0 Safari/537.36 Edg/109.0.1518.52

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

Link to the challenge:

Hey sstons, I see you created a new post. There is no need to create a new post if you still have questions on the same topic you already created. You can add any questions, or confusion you are having in the topic you already created. Did you have any confusion with the reply I sent on your other topic?

I did not know my post had go through or you had replied when i sent the second message, i understood all you said, i did not still get the coding interpretation i don’t know why

If your current code is in the post up top then you still have the anchor tag inside the image. The anchor tag needs to be on the outside of the image . Notice in my example that the anchor tag is outside the image
Example:

<a href="image"><img src="image link" alt="Text for image."></a>

worked!!! thank you very much

Glad you got it working

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