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

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [September 22, 2022, 9:40am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482 "2022-09-22T09:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![owotutuolawale3](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/owotutuolawale3/32/243534_2.png) [@owotutuolawale3](https://forum.freecodecamp.org/u/owotutuolawale3)\
**Post date:** [September 22, 2022, 9:40am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482/1 "2022-09-22T09:40:10Z")

</div>

**Tell us what’s happening:**  
Describe your issue in detail here.  
You should give the first `input` element a `required` attribute

```
  **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 input="first-name">
      <label for="first-name">Enter Your First Name: <input id="first-name" type="text" /></label>
      <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" /></label>
      <label for="email">Enter Your Email: <input id="email" type="email" /></label>
      <label for="new-password">Create a New Password: <input id="new-password" type="password" /></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 20

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![hartatociptajaya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hartatociptajaya/32/282797_2.png) [@hartatociptajaya](https://forum.freecodecamp.org/u/hartatociptajaya)\
**Post date:** [September 22, 2022, 9:47am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482/2 "2022-09-22T09:47:42Z")

</div>

Explain your current issue rather than paste the hint or instruction.

---

<div class="post-metadata">

**Author:** ![owotutuolawale3](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/owotutuolawale3/32/243534_2.png) [@owotutuolawale3](https://forum.freecodecamp.org/u/owotutuolawale3)\
**Post date:** [September 22, 2022, 9:52am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482/3 "2022-09-22T09:52:17Z")

</div>

Have got it solved… Thank you

---

<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:** [March 23, 2023, 9:53pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-20/556482/4 "2023-03-23T21:53:18Z")

</div>

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