Nest an Anchor Element within a Paragraph!

Tell us what’s happening:
Describe your issue in detail here.
I am unable to pass this challenge. I dont know what i am doing wrong. Please help.

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

1 Like

u arent suppose to create a new anchor element u nest a p elenent within the top one
e.g
ur p opening tag here
ur a tag>View more
ur p closing tag

1 Like

Thank you. is it possible to see correct coding because i am even inputting the solution and it is still not working.

We don’t hand out solution code. Please post your updated code.

Do you still need help on this challenge or you have passed it correctly ???

i still need help i believe i am doing something wrong.

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

Please post all of your code

To nest an “a” element within a paragraph element, all you need to do is have an opening tag of <p> and nest the anchor element inside the p tag and have a closing </p> at the bottom..Let me give you a hint..
<p>View more
<a then your text</a>
</p>
Nesting simply means putting an element tag inside another element tag...If you can have it done like this, then you’re good to go...

Did you pass the challenge  the way I explained it to you???You should by now !!!!
<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>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

You still have two a elements. You must only have one.

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