Making text into a link by enclosing it in an ancho

Please assist with below

Make the text freeCodeCamp.org into a link by enclosing it in an anchor ( a ) element. The href attribute should be set to https://www.freecodecamp.org .

Hello,
Welcome to the Forums :wave:


Can you post your code? It would also be great if you could post the link to the Step.

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

I also tried to remove No Copyright but it said on the browser No Copyright - freeCodeCamp.org must be displayed

The text No Copyright - should be outside the anchor element, only freeCodeCamp.org should be inside the anchor element.

At the same time, No Copyright - should be inside the p element where the anchor element is nested .

Apologies wrong code correct one is <a href="https://www.freecodecamp.org">No Copyright - freeCodeCamp.org</a>

I’ve edited your post for readability. 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 (’).


I would again repeat -->The text No Copyright - should be outside the anchor element, only freeCodeCamp.org should be inside the anchor element.

At the same time, No Copyright - should be inside the p element where the anchor element is nested .

1 Like

Thank you!! Code passed

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