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

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612>\
**Category:** Curriculum Help\
**Created:** [October 15, 2023, 6:11pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612 "2023-10-15T18:11:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahim05](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Fahim05](https://forum.freecodecamp.org/u/Fahim05)\
**Post date:** [October 15, 2023, 6:11pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/1 "2023-10-15T18:11:05Z")

</div>

**Tell us what’s happening:**  
Whats the issue with what ive done?

**Your code so far**

```html

<!-- User Editable Region -->

<html>

<!-- User Editable Region -->

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36`

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

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![igorgetmeabrain](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/igorgetmeabrain/32/314517_2.png) [@igorgetmeabrain](https://forum.freecodecamp.org/u/igorgetmeabrain)\
**Post date:** [October 15, 2023, 6:13pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/2 "2023-10-15T18:13:21Z")

</div>

> Welcome to the Registration Form project! Start by adding the `!DOCTYPE html` declaration at the top of the document so the browser knows what type of document it’s reading.

You have added a single opening `html` tag, not a `DOCTYPE` declaration.

> **[HTML doctype declaration](https://www.w3schools.com/tags/tag_doctype.ASP)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

**Author:** ![Fahim05](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Fahim05](https://forum.freecodecamp.org/u/Fahim05)\
**Post date:** [October 20, 2023, 11:24am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/3 "2023-10-20T11:24:25Z")

</div>

I added !DOCTYPE as well and it didnt work isit something like…

---

<div class="post-metadata">

**Author:** ![anon42932716](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@anon42932716](https://forum.freecodecamp.org/u/anon42932716)\
**Post date:** [October 20, 2023, 11:31am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/4 "2023-10-20T11:31:28Z")

</div>

Hello @Fahim05!

I think it may be easier if you just copy and paste it from the instructions.

" Add the `<!DOCTYPE html>` tag, and an `html` element with a `lang` attribute of `en`."

And, it is important to remember the htlm element below the with an opening and closing tag.  
Example:  
` <p> </p>`

I hope this helps you continue on your coding journey.

---

<div class="post-metadata">

**Author:** ![Fahim05](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Fahim05](https://forum.freecodecamp.org/u/Fahim05)\
**Post date:** [October 20, 2023, 11:21am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/5 "2023-10-20T11:21:22Z")

</div>

**Tell us what’s happening:**  
Not sure what Im doing wrong?

**Your code so far**

```html

<!-- User Editable Region -->

DOCTYPE

  

<!-- User Editable Region -->

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36`

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

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![anon86258595](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon86258595](https://forum.freecodecamp.org/u/anon86258595)\
**Post date:** [October 20, 2023, 11:29am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/6 "2023-10-20T11:29:06Z")

</div>

There is a syntax for declaring your doctype attribute:  
Ex:

```auto
<!DOCTYPE = "">

```

Your doctype attribute should have the value of `html` so the browser knows what type of file he is dealing with.  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![Fahim05](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@Fahim05](https://forum.freecodecamp.org/u/Fahim05)\
**Post date:** [October 22, 2023, 5:47pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/8 "2023-10-22T17:47:54Z")

</div>

…

...

Tried it didnt work…

---

<div class="post-metadata">

**Author:** ![igorgetmeabrain](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/igorgetmeabrain/32/314517_2.png) [@igorgetmeabrain](https://forum.freecodecamp.org/u/igorgetmeabrain)\
**Post date:** [October 22, 2023, 5:51pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/9 "2023-10-22T17:51:49Z")

</div>

For this first step, you should only add a single line of code - the `DOCTYPE` declaration.  
Look at the link which I posted above, which will show you exactly how this should look.  
You should not be adding an `html` element or any other code in this first step.

---

<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 22, 2024, 5:52am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-1/644612/10 "2024-04-22T05:52:48Z")

</div>

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