why we go for HTML5 ? what are the new features available ?

1 .<!DOCTYPE html>

 

 

 

              

All browsers need the doctype. Without the DOCTYPE you are forcing the browsers to render in Quirks Mode.

However, DOCTYPE was only partially used by the browsers in determining dialect and parsing, even though that was the purpose. This is why HTML5 has reduced the DOCTYPE to simply:

<!DOCTYPE html>

 

 

                               2. Cleaner Code

If you are passionate about simple, elegant, easy to read code then HTML5 is the beast for you. HTML5 allows you to write clear and descriptive code, semantic code that allows you to easily separate meaning from style and content. Consider this typical and simple header code with navigation:
<div id="header">

 <h1>Header Text</h1>
 <div id="nav">
  <ul>
   <li><a href="#">Link</a></li>
   <li><a href="#">Link</a></li>
   <li><a href="#">Link</a></li>
  </ul>
 </div>
</div>

3.Semantic markup and page layouts
http://blogs.msdn.com/b/jennifer/archive/2011/08/01/html5-part-1-semantic-markup-and-page-layout.aspx

4.canvas;
http://blogs.msdn.com/b/jennifer/archive/2011/08/02/html5-part-2-canvas.aspx

5.Audio and video
http://blogs.msdn.com/b/jennifer/archive/2011/08/03/html5-part-3-audio-and-video.aspx
 

Comments