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

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163>\
**Category:** Curriculum Help\
**Created:** [June 30, 2024, 3:03pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163 "2024-06-30T15:03:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thodty](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/thodty/32/366108_2.png) [@thodty](https://forum.freecodecamp.org/u/thodty)\
**Post date:** [June 30, 2024, 3:03pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163/1 "2024-06-30T15:03:27Z")

</div>

### Tell us what’s happening:

Need help for Registration form step28  
I don’t know what is the mistake from my code step28  
they said that " Your `input` elements should remain `type` of `radio` ."

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

<!-- User Editable Region -->

      </fieldset>
      <legend> Account type (required)</legend>
      <fieldset>        
        <label><input type="radio" name="account-type" checked /> Personal</label>
        <label><input 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/109.0.0.0 Safari/537.36`

### Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 28

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

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [June 30, 2024, 3:04pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163/2 "2024-06-30T15:04:50Z")

</div>

> [@thodty](#):
>
> ```auto
> <legend> Account type (required)</legend>
> <fieldset>        
> 
> ```

the legend has to be placed inside the fieldset, not outside it  
(and above the labels)

ps. don’t add any extra spaces in the text

---

<div class="post-metadata">

**Author:** ![thodty](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/thodty/32/366108_2.png) [@thodty](https://forum.freecodecamp.org/u/thodty)\
**Post date:** [June 30, 2024, 3:07pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163/3 "2024-06-30T15:07:38Z")

</div>

thank you  
now it sloved.

---

<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:** [December 30, 2024, 3:08am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/698163/4 "2024-12-30T03:08:27Z")

</div>

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