# HTML validation error

**URL:** <https://forum.freecodecamp.org/t/html-validation-error/209930>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [July 19, 2018, 12:08am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930 "2018-07-19T00:08:52Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 12:08am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/1 "2018-07-19T00:08:52Z")

</div>

I’m having trouble with User Story #6:" If I enter an email that is not formatted correctly, I will see an HTML5 validation error " in Responsive Web Design Projects - Build a Survey Form. How do I do this??

---

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 1:22am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/3 "2018-07-19T01:22:36Z")

</div>

sure! warning, its a little messy 😅

> **[Survey Form](https://codepen.io/bookworm0618/pen/Owywbo)**
>
> ...

---

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 1:55am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/5 "2018-07-19T01:55:19Z")

</div>

Ok thanks! but what is the test script?

---

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 2:23am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/7 "2018-07-19T02:23:05Z")

</div>

> [@camperextraordinaire](#):
>
> [https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js](https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js)

Ok, I have added the link to my JS module’s pen settings. Nothing has happened. Did I do it right? Is anything suppose to happen?

---

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 2:28am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/9 "2018-07-19T02:28:06Z")

</div>

hamburger menu?? What and where is that?

---

<div class="post-metadata">

**Author:** ![booklion](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@booklion](https://forum.freecodecamp.org/u/booklion)\
**Post date:** [July 19, 2018, 2:29am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/10 "2018-07-19T02:29:49Z")

</div>

Oh. Never mind I found it. Thank you so much for all your help!!! 🙂🤗

---

<div class="post-metadata">

**Author:** ![AhmedAlfakhry](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@AhmedAlfakhry](https://forum.freecodecamp.org/u/AhmedAlfakhry)\
**Post date:** [September 11, 2019, 8:47pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/12 "2019-09-11T20:47:36Z")

</div>

please can you tell me where this menu ?

---

<div class="post-metadata">

**Author:** ![HaithamCa](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@HaithamCa](https://forum.freecodecamp.org/u/HaithamCa)\
**Post date:** [January 27, 2020, 7:14pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/13 "2020-01-27T19:14:58Z")

</div>

Ok, it’s working know.

---

<div class="post-metadata">

**Author:** ![kushanisajinika](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kushanisajinika/32/142087_2.png) [@kushanisajinika](https://forum.freecodecamp.org/u/kushanisajinika)\
**Post date:** [April 24, 2020, 7:37am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/14 "2020-04-24T07:37:07Z")

</div>

you must give “email” as input type.  
…  
like this

---

<div class="post-metadata">

**Author:** ![mkobayashi0801](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mkobayashi0801](https://forum.freecodecamp.org/u/mkobayashi0801)\
**Post date:** [October 17, 2020, 4:21pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/15 "2020-10-17T16:21:18Z")

</div>

Hi Randell,

I am having the exact same issue. I have done everything you said, but I’m still getting the error for #6.

I’ll attach the link to my project. Could you please tell me if anything is wrong?

> **[FreeCodeCamp: Project 2 - Survey Form](https://codepen.io/turchan/pen/wvWMWRy)**
>
> ...

Thank you so much!

---

<div class="post-metadata">

**Author:** ![mkobayashi0801](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mkobayashi0801](https://forum.freecodecamp.org/u/mkobayashi0801)\
**Post date:** [October 17, 2020, 4:35pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/16 "2020-10-17T16:35:20Z")

</div>

Randell,

I GOT IT!! I looked into Booklion’s HTML and made one change to “input type”:

```auto
<div class="form-group">
      <label id="email-label" for="email">Email</label>
      <input
             type="email"
             name="email"
             id="email"
             class="form-control"
             placeholder="Enter your email"
             required
             />
    </div>

```

Before, I was using “input type=“text””. I actually put “type=text” because the sample survey form was using “text” for it. Can I ask why the sample was using “type=text” and not “type=email”? What’s the difference?

---

<div class="post-metadata">

**Author:** ![jsdisco](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jsdisco/32/179655_2.png) [@jsdisco](https://forum.freecodecamp.org/u/jsdisco)\
**Post date:** [October 17, 2020, 6:35pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/17 "2020-10-17T18:35:33Z")

</div>

> [@mkobayashi0801](#):
>
> Before, I was using “input type=“text””. I actually put “type=text” because the sample survey form was using “text” for it. Can I ask why the sample was using “type=text” and not “type=email”? What’s the difference?

The difference is that the browser will be so kind and validate the entered data before letting you click the submit button. If someone enters ` myemail@provider` or `myemail/provider.com`, the browser won’t let them send the data, because those aren’t valid email addresses. For inputs with `type=text`, there is no such validation. The user can enter whatever he wants.

The sample btw does use `type=email`, assuming that you’re referring to this codepen: [https://codepen.io/freeCodeCamp/pen/VPaoNP](https://codepen.io/freeCodeCamp/pen/VPaoNP)

---

<div class="post-metadata">

**Author:** ![mkobayashi0801](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mkobayashi0801](https://forum.freecodecamp.org/u/mkobayashi0801)\
**Post date:** [October 18, 2020, 12:05am UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/18 "2020-10-18T00:05:55Z")

</div>

jsdisco,

Ah I see. I understand now. Thank you so much!

Yes, I was referring to that codepen. It does say type=“email”… I might have seen it wrong, my apologies. Thank you again!

---

<div class="post-metadata">

**Author:** ![Yomzi](https://avatars.discourse-cdn.com/v4/letter/y/c6cbf5/32.png) [@Yomzi](https://forum.freecodecamp.org/u/Yomzi)\
**Post date:** [October 26, 2020, 1:43pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/19 "2020-10-26T13:43:29Z")

</div>

> [@camperextraordinaire](#):
>
> [https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js](https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js)

Hey @camperextraordinaire i am having problems with that test script because whenever i run it with my survey form it grades it based on the Tribute Page user stories.

can you please assist me with that one please because i wanna move on from this project

---

<div class="post-metadata">

**Author:** ![Yomzi](https://avatars.discourse-cdn.com/v4/letter/y/c6cbf5/32.png) [@Yomzi](https://forum.freecodecamp.org/u/Yomzi)\
**Post date:** [October 26, 2020, 2:38pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/20 "2020-10-26T14:38:03Z")

</div>

Hey never mind i got it!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 6, 2021, 9:15pm UTC](https://forum.freecodecamp.org/t/html-validation-error/209930/21 "2021-02-06T21:15:44Z")

</div>

Closed on February 6, 2021, 9:15pm UTC


