Monday, August 29, 2011

What is new in HTML 5

  The latest HTML version,  HTML5  is the latest buzz in the web. It is  Web 2.0 friendly version of HTML. Also,it provides lot more support for integration of forms .Let us check the latest features which  provides by HTML5.

There are,
  • New input types
  • New attributes
  • New elements
  • Validation
  • APIs, such as the File API

                                                                                                                                                                                             The new  input types are Color,Date, Datetime, Month, Range, Number, Tel , Search etc. I find the input type 'tel' is a very useful type.A user can directly make a call to a specified number from a smartphone by clicking the link in a web page. The syntax is:

<input type="tel" value="[Any numeric value]">                           

The new attributes are Autocomplete, Autofocus, formaction, formtarget, list,max etc.

The new elements are datalist, keygen, meter, output and progress .The syntax for datalist is:

<input type="text" name="characters" list="data-list">
 <datalist id="data-list">
<option value="Hugo Reyes">
<option value="Jack Shephard">
<option value="James 'Sawyer' Ford">
<option value="John Locke">
<option value="Sayid Jarrah">
</datalist>
 
As we can imagine , the web browser support for such a vast amount of different features is varying.