Learn HTML by Building a Cat Photo App - Step 15

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

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

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

Link to the challenge:

Hi there and welcome to the forum!

Could you explain in your own words what it is that you are struggling to understand about this challenge please? The more you say, the more we can help!

1 Like

Thank you for your reply. I am trying to find the correct syntax in this command line please. I tried all the possibilities.

1 Like

You appear to have lost some code from previous steps.
Firstly, I’d reset the step, to restore the code.
Then you should have an img element and should be able to turn it into a link by enclosing it in anchor (a) tags. Add the relevant href attribute to the opening anchor tag.

<p><a target=_blank href="https://freecatphotoapp.com">cat photos</a> See more in our gallery.</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

could you correct my command line.

Which step are you trying to complete? You’ve linked to Step 15 but you appear to be trying to complete Step 12?
If you are on Step 15, you need to reset the lesson, because the code has become a little messed up.

Then the instructions for Step 15 are to enclose the img element in anchor tags. So, nest your img element inside a pair of anchor tags and add the relevant href attribute to the opening tag.

1 Like

Thank you very much. I have find the solution

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