Nest an Anchor Element within a Paragraph .. i cant understand whats my wrong plz help to solve this

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<p>"View more cat photos"        
<a href="http//:www.freecat photoapp.com">"cat photos"</a>
</p>
  
  <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>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/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph/

Hey, all u need to do is to nest a paragraph element around your existing a element.

<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>

try this surely this will work.

hi here is the solution you just have to remove the second anchor tag which is above the image tag it is extra

1 Like

In addition to that if you remove the anchor tag you wont pass the test because the “view more” will be lost, so with this you can solve the problem

<p><a href="http://freecatphotoapp.com" target="_blank">cat photos</a> view more </p>

i am taking about second one anchor tag which is above image tag and view more is before anchor tag not after “cat photos”

1 Like

okay they both solve the problem,
happy coding

1 Like