it says on the last paragraph I need to nest the link inside the paragraph which it is and still gives an error
full code below:
<h2>CatPhotoApp</h2>
<main>
<a href="https://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>
<p>View more <a target="_blank" href="http://freecodecamp.org"> cat photos</a>
</p>
</main>
Challenge: Nest an Anchor Element within a Paragraph
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.
Nest the existing a element within a new p element. 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 are making a brand new a element when you need to use the a element that’s already there.
<h2>CatPhotoApp</h2>
<main>
<!-- This is the original a element -->
<a href="https://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>
<!-- This is the extra a element that you should not have -->
<p>View more <a target="_blank" href="http://freecodecamp.org"> cat photos</a>
</p>
</main>
I don’t know why you are yelling. Please don’t do that.
The challenge says
Nest the existing a element within a new p element. 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 need to nest the existinga element inside of a new p element. This means that you need to leave the existing a element exactly as it is and put new p tags around it.