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

**URL:** <https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [November 3, 2022, 3:49am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496 "2022-11-03T03:49:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![augi94](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/augi94/32/240548_2.png) [@augi94](https://forum.freecodecamp.org/u/augi94)\
**Post date:** [November 3, 2022, 3:49am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496/1 "2022-11-03T03:49:30Z")

</div>

The hint I’m receiving states " Your `html` element should have a closing tag."  
the code i’ve written is:

Can someone please explain why it’s not being accepted and what I can do to advance?

**Your code so far**

```html
<!DOCTYPE html>
<html lang="en">

```

**Your browser information:**

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0`

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

**Link to the challenge:**

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

---

<div class="post-metadata">

**Author:** ![skamat](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/skamat/32/240957_2.png) [@skamat](https://forum.freecodecamp.org/u/skamat)\
**Post date:** [November 3, 2022, 4:06am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496/2 "2022-11-03T04:06:13Z")

</div>

So please put the closing html tag after this opening tag. Closing tags are written with a backslash before the tagname. Something like this `</tagname>`.

---

<div class="post-metadata">

**Author:** ![augi94](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/augi94/32/240548_2.png) [@augi94](https://forum.freecodecamp.org/u/augi94)\
**Post date:** [November 4, 2022, 4:12pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496/3 "2022-11-04T16:12:26Z")

</div>

Thank you for your help. What I didn’t realize having taken a break from practicing was that closing tags aren’t just the \> but require \<\> **\</\>** after the opening tag.  
The solution I was looking for was:

A closing tag should look like this:

```auto
</html>

```

without any spaces. Space was included so code would appear in text.

---

<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:** [November 4, 2022, 4:13pm UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496/4 "2022-11-04T16:13:54Z")

</div>

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (`</>`) to add backticks around text.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

See [this post](https://forum.freecodecamp.org/t/forum-code-formatting/25574) to find the backtick on your keyboard.  
**Note:** Backticks (`) are not single quotes (').

---

<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:** [May 6, 2023, 4:14am UTC](https://forum.freecodecamp.org/t/learn-html-forms-by-building-a-registration-form-step-2/568496/5 "2023-05-06T04:14:23Z")

</div>

Closed on May 6, 2023, 4:14am UTC

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