# Nexting an anchor element within a paragraph

**URL:** <https://forum.freecodecamp.org/t/nexting-an-anchor-element-within-a-paragraph/466889>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [June 28, 2021, 12:51pm UTC](https://forum.freecodecamp.org/t/nexting-an-anchor-element-within-a-paragraph/466889 "2021-06-28T12:51:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amoskhaled](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@Amoskhaled](https://forum.freecodecamp.org/u/Amoskhaled)\
**Post date:** [June 28, 2021, 12:51pm UTC](https://forum.freecodecamp.org/t/nexting-an-anchor-element-within-a-paragraph/466889/1 "2021-06-28T12:51:36Z")

</div>

I’m finding it difficult to next an anchor element within a paragraph, it keeps telling me I should only have one a element

```
   **Your code so far**

```

```html

<h2>CatPhotoApp</h2>
<main>

<a> href="https://www.freecatphotoapp.com">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">cat photos</a></p>

```

```
   **Your browser information:**

```

User Agent is: `Mozilla/5.0 (Linux; Android 9; Infinix X625B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.82 Mobile Safari/537.36`

**Challenge:** Nest an Anchor Element within a Paragraph

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![staranbeer](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/staranbeer/32/327483_2.png) [@staranbeer](https://forum.freecodecamp.org/u/staranbeer)\
**Post date:** [June 28, 2021, 12:59pm UTC](https://forum.freecodecamp.org/t/nexting-an-anchor-element-within-a-paragraph/466889/2 "2021-06-28T12:59:54Z")

</div>

Delete the “a” tag that you have just beneath your opening “main” tag and it should work just fine.

 ![Nexting-an-anchor-element-within-a-paragraph-HTML-CSS-The-freeCodeCamp-Forum](https://global.discourse-cdn.com/freecodecamp/original/3X/b/0/b07a1147202f45877114f32a48c21d0e0edf72ff.png)

Hope this helped! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [December 28, 2021, 1:00am UTC](https://forum.freecodecamp.org/t/nexting-an-anchor-element-within-a-paragraph/466889/3 "2021-12-28T01:00:53Z")

</div>

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