Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6978635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:46:56+00:00 2026-05-27T17:46:56+00:00

With HTML5, the following markup is just enough to get the browser handle input

  • 0

With HTML5, the following markup is just enough to get the browser handle input validation for one.

It will verify the input is matching an email address format as well as that it is actually provided:

<input id="email" name="email" type="email" placeholder="Email address" required/>

There is no need to hook on events, neither for the input box nor for the submit button, just fine.

I am looking for a way to decide whether browser already support this functionality or I should handle input validation myself.

I wonder if there is a way to get this straight forward, or shall I maintain a table of all possible brands-versions combinations and the supported flag.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:46:57+00:00Added an answer on May 27, 2026 at 5:46 pm

    As mentioned by @deceze, the detection technique is described in here and the tool is modernizr

    if (!Modernizr.inputtypes.email) {
      // no native support for <input type="email"> :(
      // maybe build one yourself with Dojo or jQueryUI
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get HTML5's audio tag to work in Chrome. The following code
I'm trying to create css buttons by using the following html markup: <a href=access.php
I have the following html: HTML markup <ul id=test> <li><a href=http://www.yahoo.com>yahoo</a></li> <li><a href=http://www.google.com>Google</a></li> </ul>
Consider the following markup: <!DOCTYPE html> <html> <head> <title>Test Page</title> <link href=screen.css rel=stylesheet />
I have the following HTML5 content: <section contenteditable=true id=editable class=ui-selectee ui-selected> <span>something</span> <span>something</span> <span>something</span>
In this answer to this question , Lachlan-Hunt writes the following: With HTML5, you
I have some trivial markup that looks like the following: <li class=someclass> <=% t'model.attr'
Why in the following Razor markup @foreach (var item in Model) { <tr> <td>@Html.DisplayFor(modelItem
Consider the following HTML markup. In most browsers that I have tested, the second
I have the following HTML markup : <a class=link1 href=javascript:load(0,1);>Click here</a><span class=loader></span> The load

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.