# Nest an Anchor Element within a Paragraph help :(

**URL:** <https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643>\
**Category:** General\
**Created:** [March 8, 2018, 8:02pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643 "2018-03-08T20:02:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josep22](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josep22](https://forum.freecodecamp.org/u/josep22)\
**Post date:** [March 8, 2018, 8:02pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/1 "2018-03-08T20:02:49Z")

</div>

**Tell us what’s happening:**

Make sure each of your p elements has a closing tag.  
Make sure each of your a elements has a closing tag.

I don’t know how to go on. ☹

How am i supossed to close the elements? There’s both and

 written down already. Very confused -.-"

Thanks

**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> Here's a
<a href="http://www.freecatphotoapp.com">cat photos</a>
  link.</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> View more <a href="http://www.freecatphotoapp.com"</a> cat photos </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/64.0.3282.186 Safari/537.36`.

**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:** ![HaceneNasseur](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hacenenasseur/32/77564_2.png) [@HaceneNasseur](https://forum.freecodecamp.org/u/HaceneNasseur)\
**Post date:** [March 8, 2018, 8:10pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/2 "2018-03-08T20:10:04Z")

</div>

Hi,

You have two `<p>` elements that don’t have closing tags. The code below and compare 🙂

```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> Here's a
<a href="http://www.freecatphotoapp.com">cat photos</a>
  link.</a></p>
<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> View more <a href="http://www.freecatphotoapp.com"</a> cat photos </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>

```

---

<div class="post-metadata">

**Author:** ![The\_Manoj](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/the_manoj/32/79702_2.png) [@The\_Manoj](https://forum.freecodecamp.org/u/The_Manoj)\
**Post date:** [March 8, 2018, 8:19pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/3 "2018-03-08T20:19:38Z")

</div>

Hello @josep22  
If you open two `<p>` elements you should have closed two `</p>` elements… like that goes on buddy!

---

<div class="post-metadata">

**Author:** ![josep22](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josep22](https://forum.freecodecamp.org/u/josep22)\
**Post date:** [March 8, 2018, 9:24pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/4 "2018-03-08T21:24:20Z")

</div>

Thank u very much 🙂

---

<div class="post-metadata">

**Author:** ![josep22](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josep22](https://forum.freecodecamp.org/u/josep22)\
**Post date:** [March 8, 2018, 9:24pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/5 "2018-03-08T21:24:53Z")

</div>

Thanks a lot , problem solved 😃

---

<div class="post-metadata">

**Author:** ![DennnisDavis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dennnisdavis/32/110903_2.png) [@DennnisDavis](https://forum.freecodecamp.org/u/DennnisDavis)\
**Post date:** [February 23, 2019, 9:47am UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/6 "2019-02-23T09:47:40Z")

</div>

I also attended this and got answer to my question.

---

<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 17, 2021, 8:06pm UTC](https://forum.freecodecamp.org/t/nest-an-anchor-element-within-a-paragraph-help/178643/7 "2021-01-17T20:06:58Z")

</div>

Closed on January 17, 2021, 8:06pm UTC


