I don’t understand what I’m doing wrong. The challenge is to include an anchor tag and link the image to the website, but every time I’m being told " You should only add one opening anchor (a ) tag. Please remove any extras." Please help me.
<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>
<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.">
</main>
</body>
</html>
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
the anchor tag is still malformed. Recall that an anchor tag looks like this:
<a href="this is a link">Click Me!!</a>
Notice that in your last post, the code did not close the start tag correctly
and did not place the end tag to the right side of the image.
These issues would cause the code to be not accepted by the step test.
It still isn’t working
It keeps saying " Your img element should be nested within the anchor (a ) element. The entire img element should be inside the opening and closing tags of the anchor (a ) element."