# Learn HTML Forms by Building a Registration Form - Step 22

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [October 5, 2022, 2:27am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306 "2022-10-05T02:27:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmed3300](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ahmed3300](https://forum.freecodecamp.org/u/ahmed3300)\
**Post date:** [October 5, 2022, 2:27am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/1 "2022-10-05T02:27:56Z")

</div>

**Tell us what’s happening:**  
Describe your issue in detail here.  
Hi there  
this is what i did  
pattern="[a-z0-5]{8, } and errased the `minlength` yet it is error  
**Your code so far**

```html
<!-- file: index.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 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></fieldset>
      <fieldset></fieldset>
      <input type="submit" value="Submit" />
    </form>
  </body>
</html>

```

```css
/* 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36`

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

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-22)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Danz\_Codingz\_OP](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/danz_codingz_op/32/287049_2.png) [@Danz\_Codingz\_OP](https://forum.freecodecamp.org/u/Danz_Codingz_OP)\
**Post date:** [October 5, 2022, 2:46am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/2 "2022-10-05T02:46:36Z")

</div>

I think the problem for this is in your “password” its “minimum length” you had it the first time when giving us the question ’ don’t erase **minlength** sorry for my trash explanation, I’m only good at giving the answer really sorry but hope this helps

---

<div class="post-metadata">

**Author:** ![ahmed3300](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ahmed3300](https://forum.freecodecamp.org/u/ahmed3300)\
**Post date:** [October 5, 2022, 4:06am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/3 "2022-10-05T04:06:07Z")

</div>

Hi there  
I did exactly what you said yet won’t go through  
type=“password” minlength=“8” pattern=“[a-z0-5]{8, }” required /\>

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [October 5, 2022, 7:45am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/5 "2022-10-05T07:45:00Z")

</div>

> [@ahmed3300](#):
>
> `<label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8, }" required /></label>`

This looks correct.  
Try to reset the step and force a reload using CTRL-F5 then paste the pattern attribute in again. (Also make sure you are using and english language keyboard setup when you type as sometimes characters are not quite the same on other keyboards)

---

<div class="post-metadata">

**Author:** ![Danz\_Codingz\_OP](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/danz_codingz_op/32/287049_2.png) [@Danz\_Codingz\_OP](https://forum.freecodecamp.org/u/Danz_Codingz_OP)\
**Post date:** [October 5, 2022, 8:22am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/6 "2022-10-05T08:22:12Z")

</div>

Yeah sorry you were exactly on the right path my apologies ‘ yeah might have to restart step and copy/paste your one above its correct.

---

<div class="post-metadata">

**Author:** ![ahmed3300](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@ahmed3300](https://forum.freecodecamp.org/u/ahmed3300)\
**Post date:** [October 6, 2022, 2:53am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/7 "2022-10-06T02:53:43Z")

</div>

Thanks a lot  
finally it got through

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [April 6, 2023, 2:53pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-22/560306/8 "2023-04-06T14:53:49Z")

</div>

Closed on April 6, 2023, 2:53pm UTC

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