Wrap text p tag inside a link

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

<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.

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.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

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”, 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.

1 Like

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.

<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. so how to get this to pass.
frustrated.

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

hi. okay, well not liking the text inside the link 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

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

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 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.

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

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

<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.

your code is not in this form post. its just a link to freecodecamp.org. we need your code not a link

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 is there twice

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.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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

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. 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

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

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 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.

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!

hi. okay so maybe then put the end a tag after the text of 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.

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 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.

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

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

freeCodeCamp.org No - Copyright


so this is the latest code. still complains that the text 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.