Learn HTML Forms by Building a Registration Form - Step 24

I keep getting the error

You should add two input elements. You should give both input elements a type of radio.

Personal Account Business Account

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'>
        <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>
        <label>Personal Account <input type="radio"/></label>
        <label>Business Account <input type="radio"/></label>
        <label> <input type="radio"/> </label>
      <input type="submit" value="Submit" />
/* 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 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0

Challenge: Learn HTML Forms by Building a Registration Form - Step 24

Link to the challenge:

The code originally looked like this:


And the instruction given was:

within each of the first two label elements, add one input element…

Here’s your attempt to do that:

What do you think? Did you “within each of the first two label elements, add one input”?
ps. notice also they never asked you add anything except the input element…

Like this?

        <label>Personal Account <input type="radio"/><input type="radio"/></label>
        <label>Business Account <input type="radio"/><input type="radio"/></label>
        <label> <input type="radio"/> </label>

:sweat_smile: I’m so embarrased

Please do not waste time being embarrassed and please just read this instruction for me again.

Which label elements are they talking about - the first 2
how many inputs? - one

They didn’t ask you to add anything else…

> <fieldset>
>         <label><input type="radio"/></label>
>         <label><input type="radio"/></label>
>         <label></label>
>       </fieldset>

That was it!

1 Like

We have blurred this solution so that users who have not completed this challenge can read the discussion in this thread without giving away the solution.

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