# 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/657134>\
**Category:** Curriculum Help\
**Created:** [December 21, 2023, 2:48pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/657134 "2023-12-21T14:48:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanJ](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/seanj/32/344778_2.png) [@SeanJ](https://forum.freecodecamp.org/u/SeanJ)\
**Post date:** [December 21, 2023, 2:48pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/657134/1 "2023-12-21T14:48:30Z")

</div>

### I’m putting Account type (required) in the legend element and nothing is happening

### 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" /> 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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile 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:** ![zaklina](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zaklina/32/221235_2.png) [@zaklina](https://forum.freecodecamp.org/u/zaklina)\
**Post date:** [December 21, 2023, 3:01pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/657134/2 "2023-12-21T15:01:43Z")

</div>

Account type (required)  
add the `checked` attribute to the `Personal` input

---

<div class="post-metadata">

**Author:** ![anon42932716](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@anon42932716](https://forum.freecodecamp.org/u/anon42932716)\
**Post date:** [December 21, 2023, 7:02pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/657134/3 "2023-12-21T19:02:44Z")

</div>

`This is a duplicate post. `

I placed an example of how it should appear in the previous post.

> [@SeanJ](#):
>
> `<legend> Account-type required </legend>`

Example:

`<label>text(added)</label> `

Tags need to be touching the text on both sides and the parentheses need to be replaced around `required`.

Happy coding!

---

<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:** [June 21, 2024, 7:02am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-28/657134/4 "2024-06-21T07:02:47Z")

</div>

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