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

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [July 22, 2022, 9:01pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987 "2022-07-22T21:01:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![chubchub](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@chubchub](https://forum.freecodecamp.org/u/chubchub)\
**Post date:** [July 22, 2022, 9:01pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/1 "2022-07-22T21:01:17Z")

</div>

Step 16 on Learn HTML forms by Building a Registration Form won’t work

Instructions are:  
Specifying the `type` attribute of a form element is important for the browser to know what kind of data it should expect. If the `type` is not specified, the browser will default to `text`.

Give the first two `input` elements a `type` attribute of `text`, the third a `type` attribute of `email`, and the fourth a `type` attribute of `password`.

The `email` type only allows emails with a `@` and a `.` in the domain. The `password` type obscures the input, and warns if the site does not use HTTPS.

I am being told that: " You should give the third `input` element a `type` attribute of email" …which I did.

Any ideas???

```
   **Your code so far**

```

```html
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <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 type="text">Enter Your First Name: <input /></label>
       <label type="text">Enter Your Last Name: <input /></label>
       <label type="email">Enter Your Email: <input /></label>
       <label type="password">Create a New Password: <input /></label>
     </fieldset>
     <fieldset></fieldset>
     <fieldset></fieldset>
   </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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36`

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

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![Notchoaveragejoe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/notchoaveragejoe/32/270435_2.png) [@Notchoaveragejoe](https://forum.freecodecamp.org/u/Notchoaveragejoe)\
**Post date:** [July 22, 2022, 9:07pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/2 "2022-07-22T21:07:01Z")

</div>

Review in which element you placed your type attributes

---

<div class="post-metadata">

**Author:** ![chubchub](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@chubchub](https://forum.freecodecamp.org/u/chubchub)\
**Post date:** [July 22, 2022, 11:24pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/3 "2022-07-22T23:24:49Z")

</div>

I feel like these are the right spots. It spoke specifically about the email line in the error.

Enter Your First Name:   
Enter Your Last Name:   
Enter Your Email:   
Create a New Password:

---

<div class="post-metadata">

**Author:** ![Notchoaveragejoe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/notchoaveragejoe/32/270435_2.png) [@Notchoaveragejoe](https://forum.freecodecamp.org/u/Notchoaveragejoe)\
**Post date:** [July 23, 2022, 8:03am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/4 "2022-07-23T08:03:35Z")

</div>

what type of inputs are those? you need to tell the system what type of information it expects in the textarea

---

<div class="post-metadata">

**Author:** ![Annamaria](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Annamaria](https://forum.freecodecamp.org/u/Annamaria)\
**Post date:** [July 31, 2022, 8:35pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/5 "2022-07-31T20:35:05Z")

</div>

Hi, unfortunately I am not able to share my own codes I have done, but I did how you suggested to do to chubchub, but still not working. Can you please send to me the solution please, the whole thing so I can compare it with mine. thanks for your help

---

<div class="post-metadata">

**Author:** ![Notchoaveragejoe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/notchoaveragejoe/32/270435_2.png) [@Notchoaveragejoe](https://forum.freecodecamp.org/u/Notchoaveragejoe)\
**Post date:** [August 1, 2022, 3:35pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/6 "2022-08-01T15:35:08Z")

</div>

I’m not sure what it is you need help with but i’ll give you a hint, there’s a _type_ of attribute that all four needs to be assigned to in your input element

---

<div class="post-metadata">

**Author:** ![Annamaria](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Annamaria](https://forum.freecodecamp.org/u/Annamaria)\
**Post date:** [August 1, 2022, 5:21pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/7 "2022-08-01T17:21:35Z")

</div>

Thank you, It’s all done, but still not working. What I said I wish to send the whole thing to the group, so someone could help, but somehow there is no option anymore to share what I have

---

<div class="post-metadata">

**Author:** ![Notchoaveragejoe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/notchoaveragejoe/32/270435_2.png) [@Notchoaveragejoe](https://forum.freecodecamp.org/u/Notchoaveragejoe)\
**Post date:** [August 1, 2022, 6:12pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/8 "2022-08-01T18:12:28Z")

</div>

Copy the code you’re struggling with using three backtick ``` at the beginning of your code and at the end

---

<div class="post-metadata">

**Author:** ![switch-ash](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@switch-ash](https://forum.freecodecamp.org/u/switch-ash)\
**Post date:** [August 6, 2022, 11:27am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/9 "2022-08-06T11:27:49Z")

</div>

hey dude, did you figure this out? I have the same exact problem. my code is alright, but it keep having “You should give third input element a “type” attribute of “email””

I looked at youtube video, even my code is exact same with the youtuber, but he passed while I’m not. I wonder if this is a bug.

nevermind, solve it.

---

<div class="post-metadata">

**Author:** ![Notchoaveragejoe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/notchoaveragejoe/32/270435_2.png) [@Notchoaveragejoe](https://forum.freecodecamp.org/u/Notchoaveragejoe)\
**Post date:** [August 9, 2022, 8:59am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/10 "2022-08-09T08:59:02Z")

</div>

sometimes its just spacing

---

<div class="post-metadata">

**Author:** ![ElinoreFey](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/elinorefey/32/245103_2.png) [@ElinoreFey](https://forum.freecodecamp.org/u/ElinoreFey)\
**Post date:** [August 10, 2022, 3:48am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/11 "2022-08-10T03:48:39Z")

</div>

I don’t know if you have figured this out or not but to fix this you need to move your type attributes from after the label element to after the input element.  
Enter Your First Name:   
remember to include the space after the colon.

---

<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:** [February 8, 2023, 3:49pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-16/532987/12 "2023-02-08T15:49:32Z")

</div>

Closed on February 8, 2023, 3:49pm UTC

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