Learn HTML Forms by Building a Registration Form - Step 28

do uotknow what I’m am doing wrong her help pls

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 method="post" 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>

<!-- User Editable Region -->


        <legend> Account type (required) </legend>
        <label><input type="radio" name="account-type" /> Personal</label>
        <label><input type="radio" name="account-type" /> Business</label>

<!-- User Editable Region -->

      <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15

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

Link to the challenge:

Get rid of the spaces at the very beginning and end of the text. The tests can be very picky about extra unnecessary spaces.

“…add checked attribute to the Personal input”

You need to do this.

1 Like

You’ve already had experience with the checked attribute in the Cat Photo App course. If you can’t remember how to use it then look back at the HTML in step 69 of that course.

You just need to add it to the opening tag, just like you would add any other attribute, except that you don’t need to give it a value.

yes, I started to think a bit and I understood it, but thanks for the help =)

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