Nest an Anchor Element within a Paragraph challenge

Nest an Anchor Element within a Paragraph challenge
0.0 0

#1

Tell us what’s happening:

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>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="#"> cat photos</a></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:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph/

I can’t get past the test with “your element should be nested inside your new

element.” But it is nested withing the

element I just created. This is the only challenge in HTML I haven’t completed due to the bug (I am guessing) so I am anxious to correct it and move on.
Thank you!


#2

The href attribute of your anchor tag is not the url specified in the challenge.


#3

Thanks! I had it there before (then just shortened it out of desperation, after trying like 15 different things :)) , but didn’t include "_blank " thingy… this last time I copied the whole thing and it worked!