Learn HTML by Building a Cat Photo App - Step 14

How can i turn and image into a link in img with a href value in anchor correctly? Is there anyone who might want to 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" <a href="https//freecatphotoapp.com" alt="A cute orange cat lying on its back." </a>
</main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36

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

Link to the challenge:

you need to put the opening anchor tag before the image element and the closing anchor tag after the image element
issues you have here

  • image element is missing closing >
  • you are missing the opening <a> tag
  • after that you can write the href attribute
1 Like

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