Nest an Anchor Element within a Paragraph-Help

Nest an Anchor Element within a Paragraph-Help
0.0 0

#1

Tell us what’s happening:

I am having difficulty with this coding challenge.
I am not sure how to complete the objective “Your a element should be nested within your new p element.”

I passed the other objectives for the coding challenge:
You need an a element that links to “http://freecatphotoapp.com”.
Your a element should have the anchor text of “cat photos”
Create a new p element around your a element. There should be at least 3 total p tags in your HTML code.
Your p element should have the text "View more " (with a space after it).
Your a element should not have the text “View more”.
Make sure each of your p elements has a closing tag.
Make sure each of your a elements has a closing tag.

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p>View more  </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 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 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/


#2

Put your closing p tag after closing a tag.


#3

There are currently 2 p elements on your code. You need to create a third one and nest the a element inside of the new paragraph element.


#4

how to nest an anchor elementcat photos