7. Email Inputs If we apply a type of “email” to form inputs, we can instruct the browser to only allow strings that conform to a valid email address structure. That’s right; built-in form validation will soon be here! We can’t 100% rely on this just yet, for obvious reasons. In older browsers that do not understand this “email” type, they’ll simply fall back to a regular textbox. <!DOCTYPE html >
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > untitled </ title >
</ head >
< body >
< form action = "" method = "get" >
< label for = "email" > Email: </ label >
< input id = "email" name = "email" type = "email" />
< button type = "submit" > Submit Form </ button >