Learn HTML Forms by Building a Registration Form - Step 22

Tell us what’s happening:
i keep on getting the message create an input element with a minlenght of 8. i tried putting the minlenght=“8” or =8 or tried to put the minlenght just after the input element same error

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

<!-- User Editable Region -->

        <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" required minlenght="8" />

<!-- 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 (iPad; CPU OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/114.0.5735.99 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Check the spelling here.

1 Like

what is wrong with my spelling

You have a typo in “minlength” attribute. The last two letters should be interchanged.

1 Like

The text that comes after min is not correctly writen.

1 Like

You have the right process. Just the darn keyboard bit you, like it has me on occasion (as I am sure others have been bitten by the keyboard gremlin, too).
Great job! Happy coding! :slight_smile:

will definitely triple check. A good lesson, Chat never caught it.


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