# Link to website

**URL:** <https://forum.freecodecamp.org/t/link-to-website/511443>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [May 25, 2022, 5:00am UTC](https://forum.freecodecamp.org/t/link-to-website/511443 "2022-05-25T05:00:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![stepheno8](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@stepheno8](https://forum.freecodecamp.org/u/stepheno8)\
**Post date:** [May 25, 2022, 5:00am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/1 "2022-05-25T05:00:16Z")

</div>

I’m supposed to link the terms and conditions the website, this is what i got.

```auto
       <label><input type="radio" name="account-type" /> Personal Account</label>
        <label><input type="radio" name="account-type" /> Business Account</label>
        <label><input type="checkbox" required /> I accept the terms and conditions</label>
        <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
      </fieldset>

```

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-26)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![stepheno8](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@stepheno8](https://forum.freecodecamp.org/u/stepheno8)\
**Post date:** [May 25, 2022, 5:01am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/2 "2022-05-25T05:01:10Z")

</div>

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-26)**
>
> Learn to Code — For Free

This is the link to the challenge

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 25, 2022, 5:01am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/3 "2022-05-25T05:01:59Z")

</div>

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.

 ![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:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 25, 2022, 5:03am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/4 "2022-05-25T05:03:54Z")

</div>

HI @stepheno8 !

It looks like you have terms and conditions twice.  
 ![Screen Shot 2022-05-24 at 10.03.15 PM](https://global.discourse-cdn.com/freecodecamp/original/4X/7/6/9/7695019d36bd1b3d0a4413e4f894c2b315681149.png)

The challenge wants you to take this terms and conditions here

> [@stepheno8](#):
>
> ` required /> I accept the terms and conditions</label>`

and turn that into a link.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![stepheno8](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@stepheno8](https://forum.freecodecamp.org/u/stepheno8)\
**Post date:** [May 25, 2022, 5:06am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/5 "2022-05-25T05:06:46Z")

</div>

Its telling me that I should use a `<a>` element to link the terms and conditions…

```auto
<a href="https://www.freecodecamp.org/news/terms-of-service">terms and conditions</a>

```

This is what I have and its coming up wrong…

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [May 25, 2022, 5:09am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/6 "2022-05-25T05:09:52Z")

</div>

Yes, you are correct that you need to use anchor tag to create the link.  
The issue is that you were supposed to wrap the anchor tags around terms and conditions here

> [@stepheno8](#):
>
> `terms and conditions</label>`

instead you created a whole new terms and conditions right below with the anchor tag

> [@stepheno8](#):
>
> ```auto
> <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
> </fieldset>
> 
> ```

You see how terms and conditions shows up twice here

> [@stepheno8](#):
>
> ```auto
> <label><input type="checkbox" required /> I accept the terms and conditions</label>
> <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
> </fieldset>
> 
> ```

Wrap your anchor tags around the first terms and conditions I showed you and the test will pass.

Hope that clears it up.

---

<div class="post-metadata">

**Author:** ![stepheno8](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@stepheno8](https://forum.freecodecamp.org/u/stepheno8)\
**Post date:** [May 25, 2022, 5:24am UTC](https://forum.freecodecamp.org/t/link-to-website/511443/7 "2022-05-25T05:24:19Z")

</div>

Sweet, you are awesome, thank you so much…

---

<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:** [November 23, 2022, 5:24pm UTC](https://forum.freecodecamp.org/t/link-to-website/511443/8 "2022-11-23T17:24:27Z")

</div>

Closed on November 23, 2022, 5:24pm UTC

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