Learn HTML Forms by Building a Registration Form - Step 28

Please :pray: help. I’ve been stuck on step 28 for two days. I’m sure that I have followed the instructions

Your code so far

/* file: index.Ext.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>
      <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></fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>
/* file: styles.Ext.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

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

Your mobile information:

SM-F916B - Android 13 - Android SDK 33

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

Link to the challenge:

  • The closing legend tag is missing the \
  • There should be a space between the text Account type and the text (required). Next time, you should copy and paste the text to avoid this type of mistake.

If you can afford, It’s easier to learn on a computer rather than on mobile.

Thank you for your reply, but I’ve done what you’ve recommended and now I get this message:
Your input elements should remain type of radio.

Could you post your updated code.

Remember to put your code bettween
```
and
```
(3 backticks)

or use the Preformatted Text button to make your code prepormatted

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