I'm lost help & please explain what I'm doing wrong. It's saying your code should only contain one anchor (a) element. Remove any extra anchor elements

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p><a href="https://cat photo.com">cat photos</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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.66 Safari/537.36 Edg/103.0.1264.44

Challenge: Step 12

Link to the challenge:

Ya, it’s not the greatest hint. Remember, the anchor element has both an opening and closing a tag. Do you have both an opening an closing a tag around “cat photos”?

normally I had the opening and closing tags however, it said I had to many (a) so I got rid of the closing (a) tag to compensate which didn’t help any lol

@cryshyan97 this is what I currently have.

<p>Click here to view more <a href="https://cat photos.com"</a>cat phots</p>

now it’s telling me: “Your code should only contain one anchor (a ) element. Remove any extra anchor elements.” My open and closing tags are <a href= &

@cryshyan97 sorry opening tag and closing tags are "<a href=(the link here) closing tag

<p><a href="https://freecatphotoapp.com">cat photos</a></p>

1 Like

HI @TrplBlk !

Your issue is here

You are missing the closing bracket >

It also looks like you mispelled photos here

and the url here is not correct

I would reset the lesson and try again making sure you have all correct spelling and urls

1 Like

lol literally been at this all day trying to figure this out

Thank you literally been trying to figure this out all day!!

You haven’t closed the anchor tag.
(content)

thank you I got the solution.