Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
I cannot figure out a way to make step 15 of my code work

Describe your issue in detail here.
my issue is that I tried everything to make my code work but I just cant figure it out. every time I try something different it just causes the whole code to fall apart.

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

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/15.3 Safari/605.1.15

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

Link to the challenge:

try to restart this step then add exactly one anchor opening tag and exactly one anchor closing tag so that the opening tag is on the left of the img and the closing tag is on the right of the img

I am not sure what you mean

Look back at previous steps. How did you create the last two anchor elements you wrote?

I wrote < a target=“_blank” href=“https://freecatphotoapp.com”>cat photos</ a>.</ p>

I spaced it out so it wouldn’t only show what it codes to

You need to do something similar here, but with the entire img element in place of the text ‘cat photos’.

I tried that as well and it still says my code is incorrect

my code:
< a href="https://freecatphotoapp.com" >< img src="https://cdn.freecodecamp.org/curric ulum/cat-photo -app/re lax ing-cat.jpg" alt="A cute orange cat lying on its ba ck."</a>

You changed the img element. You must not do that. The img element must have both < and >

thank you so much, it finally worked :smile:

1 Like