Nest an Anchor Element within a Paragraph Exercise STUCK

I believe I have done all the steps correctly. However, when I run the code it says:

Your a element should be nested within your new p element.

This is my code:


<h2>CatPhotoApp</h2>
<main>
<p> view more <a href="http://www.catphotoapp.com">cat photos </a> </p>

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

I have tried to run the code both in chrome and safari.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15.

Challenge: Nest an Anchor Element within a Paragraph

I finally got it, your link is wrong, this works:

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

Happy coding !

1 Like

Thank you so much! How did you do it? I had been trying for hours!

I tried a few times. then erased everything.
Tried doing it by myself, it passed. I went back to your code and figured out that it must be the link.

I am just a bit ahead of you as I recenlty finished the web design certification.
Keep it up - :smiley: