Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.
Hey guys, I’m stucked.how do I use an image as a link please help me

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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>
    <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 (Linux; U; Android 11; TECNO BD4j Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/94.0.4606.85 Mobile Safari/537.36 OPR/36.2.2254.130496

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

Link to the challenge:

Hi, if you want to use the img as link, you should place the “img” tag inside your “a” tag.
just like:
“<(a)><(img)><(/a)>” (without the brackets offcourse) :slight_smile:

1 Like

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