# Wrap text p tag inside a link

**URL:** <https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854>\
**Category:** Curriculum Help\
**Created:** [April 25, 2025, 10:15am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854 "2025-04-25T10:15:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 25, 2025, 10:15am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/1 "2025-04-25T10:15:16Z")

</div>

hi. up to challenge 37 in the html and got a local file on my laptop in vs code. now using firefox and trying to wrap a nested p tag like in a footer with a link. have tried about 15 different ways, and keeps telling me not correct. so what am i doing wrong. it is not liking it and did google, and did find the code. heres my code

```html
<p><a href="http:s://www.freecodecamp.org">freeCodeCamp.org <p> No - Copyright freeCodeCamp.org</p></p></a>

```

what am i doing wrong? or have i got it wrong? totally blind and using jaws 2025 on windows 11. so no vision. so not sure why hit is not letting me through. can some one let me know and email me or post on the forum and send a link, giving this up today. tried and still not working. frustrated. marvin.

[https://www.freecodecamp.org/learn/full-stack-developer/workshop-cat-photo-app/step-37](https://www.freecodecamp.org/learn/full-stack-developer/workshop-cat-photo-app/step-37)

---

<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:** [April 25, 2025, 10:16am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/2 "2025-04-25T10:16:02Z")

</div>

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<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:** [April 25, 2025, 10:20am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/3 "2025-04-25T10:20:05Z")

</div>

When you ask for help, there is an HELP button (it appears after you try to run the tests 3 times) near the reset button. That button would create a template for a forum post that already contains your code and a link to the step.

If you don’t use that, you should at least share a link to the step you are stuck on.

For the code you have now, you should have one `p` element, you have two opening tags and two closing tags instead, you also have closed the anchor element after the two closing `p` tags, which makes what you have written illegal nesting.  
You have also scrambled the starting text, I would suggest you use the reset button to restart the step. You already have a `p` element, do not add a new one. The `a` element needs to go only around the text “[freeCodeCamp.org](http://freeCodeCamp.org)”, you need to put the opening tag of the `a` element right before that and the closing tag of the `a` element right after that.

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 26, 2025, 3:02am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/4 "2025-04-26T03:02:31Z")

</div>

hi. still giving me an error. so what is the correct code. can you please put the correct code, changed a few things around and works with my local page. this is so frustrating. so will paste the code  
pasting below.  
can you help me out.  
tearing my hair out and not letting me through. tried about 30 times and have read other research. and using firefox with jaws.  
just give me the correct code. i am not sure what i am doing wrong.  
frustrated.  
please tell me how to do it right.  
totally blind and totally frustrated.  
pasting below. please edit my post.

```auto
<p><a href="https://www.freecodecamp.org">freeCodeCamp.org No - Copyright freeCodeCamp.org</a></p>
Marvin.hi so the code is <p><a href=""https;://www.freecodecamp.org">freeCodeCamp.org No - Copyright freeCodeCamp.org</a></p>

```

and not liking the text [freecodeCamp.org](http://freecodeCamp.org). so how to get this to pass.  
frustrated.

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [April 26, 2025, 3:13am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/5 "2025-04-26T03:13:39Z")

</div>

Hi @BlindVisionMan

The text `freeCodeCamp.org` should only occur once in the browser preview.  
Please reset the step to restore the original code.

As @ILM mentioned, the anchor element needs to nest the link text.

Happy coding

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 26, 2025, 3:48am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/6 "2025-04-26T03:48:40Z")

</div>

hi. okay, well not liking the text inside the link [freeCodeCamp.org](http://freeCodeCamp.org). and will paste my code below. so can some one put the correct sintax on the forum. have tried 30 or 40 times and the last day or two. works in my local copy in vs code. so not sure whyats happening. if i take out the copyright text it complains that it is not there. so will paste below. can some one help. tearing my hair out.  
marvin.  
ps: so pasting below.

[freeCodeCamp.org No - Copyright freeCodeCamp.org](https://www.freecodecamp.org)

and what am i doing wrong. says the text freeCodeCamp.org is missing fromt the text inside the link. help.

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 26, 2025, 5:28am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/7 "2025-04-26T05:28:51Z")

</div>

hi, and in the challenge preview is there an easy way to get to the source code, using firefox and did go to source code, but could not find the code for this. is there an easy way to get at this. it shows it in the preview, but cannot get it to work. frustrating. so how do i fix this. does not like the link text [freeCodeCamp.org](http://freeCodeCamp.org) and how to get it to work. can any one help me out as stuck and cannot go any further. marvin.ps: did look on google, and so the p and a tags are nested. but not liking the link text, unless another trick to then close that. any ideas before i try this in the editor. driving me nuts and cannot seem to figure it out, if it is so simple for you advanced but first time doing this sort of thing with a footer. marvin.

---

<div class="post-metadata">

**Author:** ![jamesbond](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jamesbond/32/370609_2.png) [@jamesbond](https://forum.freecodecamp.org/u/jamesbond)\
**Post date:** [April 26, 2025, 6:38am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/8 "2025-04-26T06:38:43Z")

</div>

you should post your code so we can see the problem you are trying to solve.

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 26, 2025, 7:54am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/9 "2025-04-26T07:54:42Z")

</div>

hi. heres my code. pasting it from my local copy on my hard drive in vs code. it is:

```html
<p><a href="https://www.freecodecamp.org">freeCodeCamp.org No - Copyright freeCodeCamp.org</p></a>

```

and then keeps telling me the link text is the issue. and no way to get to the source code in the challenge preview. how to fix. have tried 40 times and cannot figure this out. maybe stupid or just not getting it right. help.

---

<div class="post-metadata">

**Author:** ![jamesbond](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jamesbond/32/370609_2.png) [@jamesbond](https://forum.freecodecamp.org/u/jamesbond)\
**Post date:** [April 26, 2025, 3:23pm UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/10 "2025-04-26T15:23:01Z")

</div>

your code is not in this form post. its just a link to [freecodecamp.org](http://freecodecamp.org). we need your code not a link

---

<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:** [April 26, 2025, 5:17pm UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/11 "2025-04-26T17:17:42Z")

</div>

it is against the rules of the forum to give you code to copy

you should reset the step, the dash is in the wrong place in the text you have and the text [freeCodeCamp.org](http://freeCodeCamp.org) is there twice

---

<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:** [April 26, 2025, 7:01pm UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/12 "2025-04-26T19:01:06Z")

</div>

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<div class="post-metadata">

**Author:** ![jamesbond](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jamesbond/32/370609_2.png) [@jamesbond](https://forum.freecodecamp.org/u/jamesbond)\
**Post date:** [April 26, 2025, 11:45pm UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/13 "2025-04-26T23:45:02Z")

</div>

your code seems fine but you should look at your Paragraph and Attributes. Pay close attention to the structure of your HTML.

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 27, 2025, 12:14am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/14 "2025-04-27T00:14:45Z")

</div>

hi. okay well looked at the sample preview. okay pasting the error message and will then typ my code. still not letting me pass. so will try one more time. what am i missing. or am i just stupid or not getting it or trying to hard. okay heres the error message:  
The link’s text should be [freeCodeCamp.org](http://freeCodeCamp.org). You have either omitted the text or have a typo.

and heres my code. typing it out as copying and pasting does not work. okay heres it is:  
maybe some thing i am missing. point me out.  
and not sure why it is not letting me through. stratching my head. so it is:

[freeCodeCamp No - Copyright](https://www.freecodecamp.org)

where am i going wrong. or maybe try all lower text for the text in the link. frustrated and not sure, so this is the 42 nd time trying. marvin. e

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 27, 2025, 12:22am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/15 "2025-04-27T00:22:51Z")

</div>

hi. okay had the a p tags at the end had the p tag as the inside tag. so then flipped it around a tag then the p tag last. still did not make any difference. does not like the [freeCodeCamp.org](http://freeCodeCamp.org) text still so not sure whats happening. how to fix. any one ran into this issue. what am i doing stupid? frustrated and just stuck. looked at my tags and they are correct in the document. so how to get this to work or point me in the right direction. what am i doing wrong, and where should i put - . please help.the hi. so is it the p and the a tags that are having the issue. or not doing it correct. will go and have a look at my p tags. so, is that is why it is not passing. or something else. please help. just totally stumped. either stupid or not getting it or trying too hard. so point me in the right direction with my code to get it right. marvin.

---

<div class="post-metadata">

**Author:** ![JuniorQ](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/juniorq/32/400966_2.png) [@JuniorQ](https://forum.freecodecamp.org/u/JuniorQ)\
**Post date:** [April 27, 2025, 12:36am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/16 "2025-04-27T00:36:59Z")

</div>

Hi,  
Take it easy and go step by step.  
Reset the step and you’ll be given the clean code.  
You should add anchor tags around the text `freecodecamp.org`. Remember, you don’t need to add any new text. The text is there; just add your anchor tags around it.  
Good luck!

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 27, 2025, 12:46am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/17 "2025-04-27T00:46:19Z")

</div>

hi. okay so maybe then put the end a tag after the text of [freeCodeCamp.org](http://freeCodeCamp.org) and then have the p tag at the end for the text. is that what you are saying before trying. let me know. marvin.

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 27, 2025, 1:01am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/18 "2025-04-27T01:01:17Z")

</div>

hi. so can you email me privately via EMAIL REDACTED. so still not working and not allowed to post code on the forum. totally stumped. and still not working. does not like the code. text [freeCodeCamp.org](http://freeCodeCamp.org) and totally stumped. did try just then wrapping the anchor around the text, then closing it then having just the p tag at the end of the text. did not work. so can you help. frustrated and totally stumped. reset it three times today. still not working. help.

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [April 27, 2025, 1:09am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/19 "2025-04-27T01:09:33Z")

</div>

Hi @BlindVisionMan

Please post your latest code attempt.

Sharing personal information like your phone number, email, legal name and exact location online is unsafe.

It can be scraped by malicious actors to use against you, so please think carefully about what information you share.

Happy coding

---

<div class="post-metadata">

**Author:** ![BlindVisionMan](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/blindvisionman/32/379324_2.png) [@BlindVisionMan](https://forum.freecodecamp.org/u/BlindVisionMan)\
**Post date:** [April 27, 2025, 1:23am UTC](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854/20 "2025-04-27T01:23:38Z")

</div>

hi heres my code. still not working. what am i doing wrong?

`<p><a href="https://www.freecodecamp.org">freeCodeCamp.org No - Copyright</a></p>`

so this is the latest code. still complains that the text [freeCodeCamp.org](http://freeCodeCamp.org) is not there. so what am i doing wrong. just frustrated. and did reset the lesson three times today. and does not like the text. so is something wrong maybe with the editor or the vallidation. please help and how to fix. sorry, as not allowed to post code here, so was looking for one on one help. so just frustrated and still not working. so tried about 50 times. so help.

[Next page](https://forum.freecodecamp.org/t/wrap-text-p-tag-inside-a-link/744854.md?page=2)
