# Learn HTML Forms by Building a Registration Form - Step 29

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695>\
**Category:** Curriculum Help\
**Created:** [May 17, 2024, 8:34am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695 "2024-05-17T08:34:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yesiamnoobie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/yesiamnoobie/32/361877_2.png) [@yesiamnoobie](https://forum.freecodecamp.org/u/yesiamnoobie)\
**Post date:** [May 17, 2024, 8:34am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/1 "2024-05-17T08:34:08Z")

</div>

### Tell us what’s happening:

can someone tell where is my mistake actually i get confused :0

### Your code so far

```html
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
      </fieldset>

<!-- User Editable Region -->

      <fieldset>
        <legend>Account type (required)</legend>
        <label><input type="radio" name="account-type" checked /> Personal</label>
        <label><input type="radio" name="account-type" /> Business</label>
      </fieldset>
      <fieldset>
        <label for="personal-account"> <input id="personal-account" type="radio" name="account-type" checked /> Personal</label>
        <label for="business-account"> <input id="business-account" type="radio" name="account-type" /> Business</label>
      </fieldset>

<!-- User Editable Region -->

      <fieldset></fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

```

```css
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

label {
  display: block;
  margin: 0.5rem 0;
}

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36`

### Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 29

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

---

<div class="post-metadata">

**Author:** ![Ray13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ray13/32/351582_2.png) [@Ray13](https://forum.freecodecamp.org/u/Ray13)\
**Post date:** [May 17, 2024, 8:40am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/2 "2024-05-17T08:40:22Z")

</div>

Hi there!  
Why did you create another `fieldset`? You don’t have to create a new elements in this step, just link the existing labels and inputs.  
Reset the task and add `for` to the labels and `id` to the inputs.

---

<div class="post-metadata">

**Author:** ![yesiamnoobie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/yesiamnoobie/32/361877_2.png) [@yesiamnoobie](https://forum.freecodecamp.org/u/yesiamnoobie)\
**Post date:** [May 17, 2024, 8:44am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/3 "2024-05-17T08:44:33Z")

</div>

```auto
<label for="personal-account"> <input id="personal-account" /> </label>
        <label for="business-account"> <input id="business-account" /></label>

```

---

<div class="post-metadata">

**Author:** ![Ray13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ray13/32/351582_2.png) [@Ray13](https://forum.freecodecamp.org/u/Ray13)\
**Post date:** [May 17, 2024, 8:45am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/5 "2024-05-17T08:45:59Z")

</div>

Use **Preformatted text** button ( **\</\>** ) in the editor.

---

<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:** [May 17, 2024, 8:47am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/6 "2024-05-17T08:47:07Z")

</div>

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:** ![Ray13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ray13/32/351582_2.png) [@Ray13](https://forum.freecodecamp.org/u/Ray13)\
**Post date:** [May 17, 2024, 8:53am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/9 "2024-05-17T08:53:14Z")

</div>

That’s right. So add these attributes to the original code and you should pass

---

<div class="post-metadata">

**Author:** ![yesiamnoobie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/yesiamnoobie/32/361877_2.png) [@yesiamnoobie](https://forum.freecodecamp.org/u/yesiamnoobie)\
**Post date:** [May 17, 2024, 9:02am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/10 "2024-05-17T09:02:09Z")

</div>

im still confused actually , its still not working

```auto
<fieldset>
        <legend>Account type (required)</legend>
        <label><input type="radio" name="account-type" checked /> Personal</label>
        <label><input type="radio" name="account-type" /> Business</label>
      </fieldset>
       <label for="personal-account"><input id="personal-account" /></label>
        <label for="business-account"><input id="business-account" /></label>

```

---

<div class="post-metadata">

**Author:** ![Ray13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ray13/32/351582_2.png) [@Ray13](https://forum.freecodecamp.org/u/Ray13)\
**Post date:** [May 17, 2024, 9:06am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/11 "2024-05-17T09:06:05Z")

</div>

You don’t have to create new labels and inputs, add these attributes to the **existing** ones:

```auto
<label><input type="radio" name="account-type" checked /> Personal</label>
<label><input type="radio" name="account-type" /> Business</label>

```

Add `id` and `for` here, to these elements

---

<div class="post-metadata">

**Author:** ![yesiamnoobie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/yesiamnoobie/32/361877_2.png) [@yesiamnoobie](https://forum.freecodecamp.org/u/yesiamnoobie)\
**Post date:** [May 17, 2024, 9:08am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/12 "2024-05-17T09:08:46Z")

</div>

finally i passed it man thanks for ur helping , i appreciate it… 👍

---

<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 15, 2024, 9:09pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-29/690695/13 "2024-11-15T21:09:13Z")

</div>

Closed on November 15, 2024, 9:09pm UTC

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