Pages

Subscribe:

Friday, September 23, 2011

HTML5




HTML5
The new vision of HTML is HTML5 .You Can Find new Updates About HTML5 from W3 click here to see .W3(World Wide Web Consortium) is the main  international standards organization for WWW (World Wide Web).To know more about W3 Click here for Wikipedia .
The newly add Features specially for videos and for adios.See the bellow codes for vedios.

<video width="330" height="250" controls="controls">
  <source src="myname.mp4" type="video/mp4" />

Your browser does not support to this  video.
</video>

 You can add videos to your page easily now.But old browsers not support to the new htm5 version.
Code Discription
<video >
-this is the opening tag for videos.
 width="330" height="250" -enter some width and height for your video size.
 controls="controls" -give user to control video or not.(when you put "controls" user's browser give controls to the user.)
 <source src="myname.mp4" type="video/mp4" />-This is video parth.
 Your browser does not support to this  video-If browser not support to this video browser show this text to the user.
Codes for audio in new html5
<audio controls="controls">
    <source src="song.mp3" type="audio/mpeg" />
Your browser does not support to this audio .
</audio>  This code also same to the video html code.



 
// //