How do i nest this in a new p element?

Tell us what’s happening:

Your code so far


<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>View more<a href="https:freecatphotoapp.com" target=">_blank"cat photos</a> here for your pleasure.</p>
<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 (Linux; Android 9; TECNO KC8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

To nest means to put inside. For example, this is an h1 nested in a div:

<div>
  <h1>Howdy!</h1>
</div>

The instructions want you to nest that a inside a p. Just create your p and put the a inside. You want the text of the p to be “View more cat photos” where the last two words are your anchor.

Does that makes sense?

Thats exactly what i did sir??

Sorry, I see that you added two anchors. Remove the first. Then for the second, there are a few errors: the url is incorrect, the “>” for the anchor is in the wrong place, and the text (in the p, not the a) is missing a space.

When I fix those, the code passes for me.

Yes, I see that.

On line 4 you have an added anchor and in line 8 you’ve added a nested anchor. Get rid of the one on line 4 and fix the one on line 8.

I will try that. Thank you very much.

how to The existing input element should be nested within a form element.

Welcome, victor.

An example of nesting is given in the lesson:

<div>
  <p></p>
</div>

The p element is nested within the div element.


If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.