My bain is melting on such basic exercise, it keeps saying i need to use one anchor tag, i've tried multiple ways but nothing seems to work out

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>Click here to view more <a href="https.//freecatphotoapp.com">cat photos.<a/></p>
    <a href="https://freecatphotoapp.com"></a>
    <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Step 12

Link to the challenge:

You have two anchor tags.

it was referring you to imbed it into the p element.

so we just kind of copy and paste it in this sense to remove the second anchor tag.

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

The a element is self closing. This means that you don’t need a end tag which you have after cat photos.

i’m still lost, nothing happens even if i delete the second row

even by deleting the /a it doesn’t work

Hi!
You need to get rid of this,

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

This is a second unneeded anchor tag.

Also you’ve closed the first anchor tag incorrectly. All html tags close with the slash in front, not behind.

delete the second row and add it to the first one, aka imbedding it into the p element.

so instead of having two seperate anchor tags you only have one

Hello :), just did it but still tells me i need to use one anchor tag

Please copy and paste your current code so I can check it and see what isn’t working.

i cant really understand where exactly to put in inside, i came up with this?

Hi, please paste your code rather than using an image, it is much easier for people to read. This gif shows how to paste and format code or add back ticks to format it.

(I’m pretty sure I can see the issue in your code, but I am dyslexic and really can’t read text in images well. So please do what the gif explains so I’m sure I won’t mislead you. :sweat_smile:)

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

Okay, you’re missing the closing anchor tag, please add that before the full stop (the lesson is picky about full stops being part of links). The anchor tag needs a closing tag to work.

This is what it looks like:
</a>

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

still doesn’t work :(( it’s driving me crazy

Web addresses use colons, not full stops (Which I should have noticed earlier oops). Replace the full stop in the link with a colon like this:

https://freecatphotoapp.com

1 Like

OH WOW, the amount of time spent on this just for that :smile: , thank you very much . enjoy your day :heart: