Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Can you find what’s wrong in this code??

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>
      <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>
    </main>
  </body>
</html>

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

Link to the challenge:

I guess you are doing great. Just place the whole image element between anchore element <a>....</>. Then use the given href on the anchore element

1 Like