Nest an Anchor Element within a Paragraph 2

Tell us what’s happening:

when running gives me this error “Your a element should be nested within your new p element.” but i cant figure out whats wrong.

Your code so far


<h2>CatPhotoApp</h2>
<main>
  
  <a href="http://freecatphotoapp.com" target="_blank">Cat photos</a>
  
  <img src="https://bit.ly/fcc-relaxing-cat" 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> View more <a href="http://freecodecamp.org"> cat photos </a>
</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; rv:60.0) Gecko/20100101 Firefox/60.0.

Link to the challenge:

This part is wrong as you have the wrong href:

You need to use the pre-existing anchor element to go inside the p tags. If you replace the anchor element you created with the one that was already there, then your code should pass the tests.

:slight_smile:

Hi @Gobllyn,

This is the solution of example:

<h2>CatPhotoApp</h2>
<main>
  <p>
  <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
  View more 
  </p>
  <img src="https://bit.ly/fcc-relaxing-cat" 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>

Remove the code in challenge and replace it with the above code and it will work correctly.

Hope this solve your problem, good luck and keep going up :muscle:t2:

Regards,
Ali Mosaad