"Nest an anchor element within a paragraph" challenge

Hello everyone. :slight_smile: can anyone tell me what I’m doing wrong here?

The errors are: “Your a element should be nested within your new p element.” and "Your p element should have the text "View more " (with a space after it).

Your code so far


<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 href="https://pexels.com/search/cat/" target="_blank">cat photos</a></p>

Your browser information:

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

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

You’re using two anchor tags, but there should be only one.
There is this extra one:

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

It happens frequently we paste some code that shouldn’t be there.

  • One option, is to press Reset All Code and try again.
  • Other option: remove that line, and fix the remaining anchor tag.
1 Like

:blush: Ok phew. Now I know. Thanks for the help.