Tell us what’s happening:
Hi. So I am trying to “Turn the image into a link by surrounding it with necessary element tags. Using (wont let me add link) as the anchor’s href attribute value.”
I thought I had this right but it says that I need only one opening anchor tag, so I am really confused. I thought that I only had one opening a tag.
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.">
<a> <img href= 'https://freecatphotoapp.com' </a>
</main>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 Edg/104.0.1293.70
Challenge: Learn HTML by Building a Cat Photo App - Step 14
This is an example of a correct anchor element. You should have an anchor element like this one, but with the full img element in place of the text ‘cat photos’