Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.
I want to pass this step but I don’t know how

Your code so far

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

<!-- User Editable Region -->


Your browser information:

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

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

Link to the challenge:

you need to use an anchor tag around the image.
You can see how to make an anchor tag in step 10

Hi, reallyman32

Here are the steps to follow:

  1. Nest your <img> element inside the <a> element (this will turn the cat image into a link).
  2. Inside your <a> tag, write the attribute href and assign its value as the link given (this ensures that when you click on the cat image you are redirected to the link used)

Thank you so much! After spending more than 30min trying to understand the solution, your hint was crucial to find the answer!

1 Like

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