nest the existing

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
Nest the existing a element within a new p element. The new paragraph should have text that says View more cat photos, where cat photos is a link, and the rest is plain text.
<h2>CatPhotoApp</h2>
<main>

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

<img src="https://www.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 cat photos
<a href="https://www.freecodecamp.org"target="_blank"> Cat photos<a/>
<a href="View more" target="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/90.0.4430.93 Safari/537.36.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hi @nanaokoroji13 !

Welcome to the forum!

I would reset the lesson because there are a few errors.

Once you reset the lesson here is what you have to do.

Here is the first part of the instructions
Nest the existing a element within a new p element.

This is the existing a element.

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

You do not need to create new a element.

Add the p tags around that a element I just pointed out to you.

Here are the last part of the instructions
The new paragraph should have text that says View more

Add the text View more right after the opening p tag and before the opening a tag.

  <p>TEXT GOES HERE <a

Remember to add a space after View more.

Hope that helps!

Nest the existing <a> element within a new <p> element.

Try creating a new <p> element around the existing <a> element. Be aware of the text already included in the <a> element. :wink:

Also… make sure all of the tags which need a closing tag have one. :slight_smile:

The new <p> element you included at the end is probably not necessary.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.