Nest an Anchor Element within a Paragraph (Newbie)

Tell us what’s happening:
Hey, this is my first time coding . I have followed through with the instructions but I keep receiving errors. I think it is correct. Kindly offer assistance.

  **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.org">cat photos</a>
</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hi and welcome!
When you run your code, the console gives you hints. The hints for your code are:

You should only have one a element.
Your a element should be nested within your new p element.
Your p element should have the text View more (with a space after it).

You have a bit of extra code. I would recommend resetting your code and starting this step over, then following the instructions very carefully:

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.

You currently have 2 “cat photos” links. You should only have one.

1 Like

2?? where is the second one?

The first one:

The second one:

Thank you for your quick response.
It has worked.

I’m glad I could help. Happy coding!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.