I didn't know what it was asking me to put everything I learned into this and I didn't find a solution

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

   **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.">
<a href="https://www.freecodecamp.org" target="_blank">View more cat photos</a>

 <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>
   **Your browser information:**

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

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

You need to first: reset the code on the page.
next nest the existing <a link in a <p </p paragraph tag.
then add the text “View more cat photos” within the p tag and before the a tag.

I do not understand
You have all my codes added
Indicate where the error is and in what code

<h2>CatPhotoApp</h2>
<main>
<p> here all cats </p>
  <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>
<p> you want view more cat </p>
<p> 
cat photos <a traget="_blank" href="https://www.freecodecamp.org"> View more </a>
</p>
  <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>

This is the last one I recommended and it failed And this is the result

// running tests You should only have one

a

element. Your

a

element should be nested within your new

p

element. Your

a

element should not have the text

View more

. // tests completed

Solution:

This:

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

should be this:

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

Note that my code is missing some opening and closing tags for this example in order to properly visualization here.

@powersjo actually was telling you exactly what to do, which in other words is to modify the < a > by adding the paragraph < p > required and then closing it.

Hope you get it, gl.

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