Nesting Anchor Elements for beginners

Essentially I am a beginner, but i have wanted to tach myself to code for a really long time! Any help would be greatly appreciated!!

I’m using freecodecamp, and i’m doing alright so far bu i am stuck on how to create a nesting anchor without creating a new anchor and within an existing paragraph…

any help? please? haha

  **Your code so far**


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

<img src="" 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>
  **Your browser information:**

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

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

First, lets look at the two elements they are talking about here.

An <a href> and a <p>.

<a href> An anchor link, allows you to create a link using text.
<p> Represents a text Paragraph.

Nesting means to put one element inside another element.

In this case, they are asking you to put an <a href> element inside the <p> element.

What this looks like :

This text contains a link

<p> This text contains a <a href="" target="_blank">link</a></p>

View more cat photos

<p> View more <a href="" target="_blank">photos of some cats</a></p>```

In this tutorial they are asking that you use the preexisting <a href>:

Screenshot 2022-03-09 4.23.12 AM

I tried nesting it in an existing

element and even tried creating a new one and neither seems to be working… :confused:

Ok i got it, it was way more simpler than i thought it would be hahahah. thanks for your help!

i guess my next question is what is a dead link at its purpose?

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