Password length can't go as high as it's supposed to - Registration Form

When I try to enter a password, it says “please match the requested format”. There is no max value, there is a min value of 8 though. I have to input more than 8, but if I do even a little bit more than 8-9 it says that it doesn’t work…

/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
 </head>
 <body>
   <h1>Registration Form</h1>
   <p>Please fill out this form with the required information</p>
   <form action='https://register-demo.freecodecamp.org'>
     <fieldset>
       <label>Enter Your First Name: <input type="text" required /></label>
       <label>Enter Your Last Name: <input type="text" required /></label>
       <label>Enter Your Email: <input type="email" required /></label>
       <label>Create a New Password: <input type="password" pattern="[a-z0-5]{8,}" required /></label>
     </fieldset>
     <fieldset>
       <label><input type="radio" name="account-type" /> Personal Account</label>
       <label><input type="radio" name="account-type" /> Business Account</label>
       <label>
         <input type="checkbox" required /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
			  </label>
     </fieldset>
     <fieldset>
       <label>Upload a profile picture: <input type="file" /></label>
       <label>Input your age(years): <input type="number" min="13" max="120" /></label>
     </fieldset>
     <input type="submit" value="Submit" />
   </form>
 </body>
</html>
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #1b1b32;
	color: #f5f6f7;
}

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

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Step 28

Link to the challenge:

Your min value should be 8.

My regex is this - [a-z0-5]{8,} they said to take it out. the {8, } part means that it goes from at least 8.

I don’t understand what you are trying to do

The step instructions are

As we do not want users under the age of 13 to register, add a min attribute to the input with a value of 13 . Also, we can probably assume users over the age of 120 will not register; add a max attribute with a value of 120 .

What is your goal, what do you want to accomplish? It doesn’t seem you are following the instructions anymore

Never mind, I realized what I was doing wrong. I forgot that the code only allowed for numbers 0-5.

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