Nest an Anchor Element within a Paragraph (be nice ;))

Hey guys, I’m new to HTML so please be nice :sweat_smile:

I’m just wondering where I’m going wrong with this? I’ve reread the explanation quite a few times and I can’t seem to get it! The console is telling me that I can only have one a element, but the task is asking me to ‘nest’ it which I seem to be getting confused/stuck on.

  **Your code so far**
<h2>CatPhotoApp</h2>
<main>

<a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

<p>View more <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a></p>
  **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.5005.61 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

1 Like

the challenges says… use the existing anchor element

which u can find above ur code - third line

u need to work on that… and do not create a new one

so basicly… move up the line u did below… and delete the above one
ur code is OK

1 Like

The challenges says…
Nest the existing a element within a new p element. Do not create a new anchor tag. The new paragraph should have text that says View more cat photos , where cat photos is a link, and the rest is plain text.

Happy Coding :grinning: :smiley:

Just came back to this today and wow I was having a brain fog moment :rofl:
Thanks so much for the help!

1 Like