Having issue with the email validation error

Tell us what’s happening:

Please i need help on no 6 on the survey form any help?

Your code so far

Your browser information:

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

Challenge: Build a Survey Form

Link to the challenge:

Hey,

Think about the types of inputs. There are all kinds of them and all serve some purpose :wink:

I still don’t understand, can you kindly put me through, I believe you saw my code you can tell m where the mistake is

When you run the tests you get a description of what is wrong.

  1. If I enter an email that is not formatted correctly, I will see an HTML5 validation error.
    Email field should be HTML5 validated : expected ‘text’ to equal ‘email’

More info: HTML input type="email"

Look closely at the input type attribute - that’s where the error is.

That’s the correct code: <input type="email" name="email" id="email" class="form-control" placeholder="enter your email" required/>

1 Like