HTML 5 form elements

An interesting article by Mark Pilgrim shows some of the most interesting features of HTML 5 form elements. For example, something that literally drove me mad is the following:

<input type="text" name="email" id="email" required="required" />

So you might write a JavaScript code like this:

$('input[required]').each(function() {
  // perform some validation tasks


Leave a Reply

Note: Only a member of this blog may post a comment.