Home arrow HTML arrow HTML5 Form Elements: A Second Look

HTML5 Form Elements: A Second Look

In this second part of a two part series, you will learn how to use the HTML5 form elements: number, search, and required.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
June 15, 2011
  1. · HTML5 Form Elements: A Second Look
  2. · HTML5 number and range attributes
  3. · HTML5 search and required attributes

print this article

HTML5 Form Elements: A Second Look
(Page 1 of 3 )

Although most of the hype that HTML5 has generated in the last few months has been focused around its brand new set of flashy markup elements, the truth is that the specification also includes some additional attributes that permit you to build more functional and semantic web forms without having to deal with the inherent complexities of JavaScript.

Even when many of these attributes aren’t fully supported by most browsers, their future looks pretty bright indeed. With a little willpower and careful planning, you can start using them right now on your web pages without feeling guilty, as many of the attributes will be gracefully degraded to a common text box in the event that the browser fails to parse them properly.

In the introductory part of this tutorial (HTML5 Form Elements) I coded a few examples that demonstrated how to use the “placeholder”, “autofocus”, “email” and “url” attributes, in order to extend the basic functionality of a web form, either by adding a descriptive label to a given field or by specifying that the field in question must be filled in with a valid email address or URL.

It’s fair to note that aside from the ones just mentioned, HTML5 packages some other handy input attributes. With that in mind, in this last tutorial I’ll be showing how to enrich the functionality of a web form with the “number”, “range”, “search” and “required” attributes.

blog comments powered by Disqus

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials