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
got an issue with having to turn the image into a link as instructed

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

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

<!-- 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/115.0

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

Link to the challenge:

You need a > before the img starts and you need to get rid of the > that is after the src=

Also, the closing </a> need to come after the closing > for the img

1 Like

it still wouldnt pass
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."> </a>

I dont see a < for the opening anchor tag.
You can get rid the space between the " and >
add a space right before the img starts
remove the space in front of the </a>

Hello! There should not be separate < alt >. Just the opening before img and the closing after the back." Your anchors should be on the outside of the complete img including the alt.

Example: < opening anchor> < img and attribute > < closing anchor >
No spaces between.

<img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg”<alt=“A cute orange cat lying on its back.”> got it.

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