Help to find solution

Tell us what’s happening:
Describe your issue in detail here.
Your a element should be nested within your new p element.
You should only have one a element.
Your p element should have the text View more (with a space after it).

  **Your code so far**

<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>
</main>

<p>
"View more cat photos" <a target="_blank" href>=link to "https://www.freecatphotoapp.com"..</a>
</p> 
  **Your browser information:**

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

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Hi @goddoncoding !

Welcome to the forum!

I would suggest reseting the lesson because there are a few issues.

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>

Do not alter anything in this a element.
Wrap your p tags around that a element.

The only text you are going to add is View more
No quotes.

Do not touch the text in the anchor tags. Leave the cat photos text alone.

target="_blank">cat photos</a>

Hope that helps!

how do I link the a element to " https://www.freecatphotoapp.com "
how can i have only one a element

The challenge already gave you an anchor tag to work with.

You don’t need to create another one.

Wrap your p tags around the one they already gave you.

Make sense?

The challenge already provided the url for the anchor tag.
You are not supposed to alter the anchor tag.

Hope that is clear

I didn’t alter the anchor tag yet it keep on asking me to link the url that’s the situation

It would help to see your updated code so I know what is going on :grinning:

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

Can I see your full code?

That one line passes for me but it would help to see the full code :grinning:

I sent the code to you

No, the full code with your answer.

It should be 11 lines or so.
That way we can test it fully on our end to better assist you.

<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>
</main>
<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>
</main>
 

<p>View more <a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a></p> ode here

Ok cool.

I see the problem.

You have two anchor tags.

Here is one

and here is the second one.

You are supposed to wrap your p tags around that first one I pointed out to you.

Not create a second one at the bottom.
Once you have just one on the page then it should pass.

Make sense?

Thanks for ur support. i didn't even notice it and I have spent a lot of time on it .
1 Like