Home arrow HTML arrow HTML 5: What`s New

HTML 5: What`s New

Earlier we covered some of the new features of HTML 5, such as canvas, audio and video. In this article we'll cover many of the useful new elements that the specification brings to the table. Please remember, though, that HTML 5 is a work in progress, and not fully supported by many browsers yet.

Author Info:
By: Ayad Boudiab
Rating: 5 stars5 stars5 stars5 stars5 stars / 4
October 27, 2010
  1. · HTML 5: What`s New
  2. · Other Markup Elements
  3. · HTML 5 Web Storage

print this article

HTML 5: What`s New
(Page 1 of 3 )

HTML 5 New Elements

There are many new elements added to HTML 5. These elements are divided into form elements and other markup elements.

Form Elements

Let's start with the form elements. Form elements as you know them from previous versions of HTML (specifically 4.01) are still supported, but new elements and attributes have been added to address the limitations that web developers have been facing. However, browser support for HTML 5 form elements is still limited. Here is an example that contains some of the new form features (only a portion of the code is shown):

The key points to address are:

The name field has a required attribute (has a red border, as you'll see in the output below). Also, there is a placeholder attribute that directs the user to what to write in the textbox.

The type of the e-mail address is "email," and its property of autocomplete is set to off. If the user types an email address with the wrong format, the textbox will have a red border, and a tooltip with a message is displayed.

The type of the phone number is "tel."

The type of the web site is url. The same condition applies here as the email address if the user types a url in the wrong format.

The score is of type "range" with both minimum and maximum values.
The output (with some information filled in) is as follows:


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