# Nest an Anchor Element within a Paragraph please help

**URL:** <https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270>\
**Category:** General\
**Created:** [August 22, 2017, 11:34pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270 "2017-08-22T23:34:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![haroon97](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/haroon97/32/83986_2.png) [@haroon97](https://forum.freecodecamp.org/u/haroon97)\
**Post date:** [August 22, 2017, 11:34pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270/1 "2017-08-22T23:34:51Z")

</div>

**Tell us what’s happening:**

I have followed all the instruction but it says that p element has a closing tag but when I put the closing tag it saysthat p element should be nested within a element. please help?

**Your code so far**

```auto
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>"view more "<a href="http://www.freecatphotoapp.com">cat photos</a>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">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 class="red-text">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:**

Your Browser User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393`.

**Link to the challenge:**  
[https://www.freecodecamp.org/challenges/nest-an-anchor-element-within-a-paragraph](https://www.freecodecamp.org/challenges/nest-an-anchor-element-within-a-paragraph)

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [August 22, 2017, 11:45pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270/2 "2017-08-22T23:45:17Z")

</div>

This is how “nesting” works in HTML. Note that both the outer element and nested element have closing tags.

```auto
<outerElement attributeName="attributeValue">
    <nestedElement attributeName="attributeValue">
        stuff
    </nestedElement>
</outerElement>

```

---

<div class="post-metadata">

**Author:** ![haroon97](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/haroon97/32/83986_2.png) [@haroon97](https://forum.freecodecamp.org/u/haroon97)\
**Post date:** [August 23, 2017, 9:38am UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270/3 "2017-08-23T09:38:06Z")

</div>

im really sorry I’m unable to understand what you said. Can you explain in simple words?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 6:35pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-please-help/143270/4 "2021-01-16T18:35:47Z")

</div>

Closed on January 16, 2021, 6:35pm UTC


