And now it's been liftedHTML5 craze, this article to illustrate the nextHTML5 Audio Audio andVideoVideo
InHTML5There are some new features in this:
* CANV asElements
* Video and audio audio elements;
* For local offline storage (Localstorage,seSSIOnstorage) support;
* Added Special content elements: article, footer, header, nav, section;
* Added form controls: Calendar, date, time, email, url, search.
Take a look at video and audio today: The standard way to set up video in HTML5:
<video src= "Xxx.ogg" controls= "Controls" > your browser is not supported Oh </video>
We can also set a number of source, the browser will select the first recognizable video for us to play, such as:
<video width= "height=" controls= "Controls" >
<source src= "Xxx.ogg" type= "Video/ogg" >
<source src= "Xx1.mp4" type= "Video/mp4" >
Your browser is not yet supported Oh </video>
The video properties are:
In HTML5, the audio element is defined as audio, and the audio element can play a sound file or stream.
Audio format is similar to video: Direct Line multiple Source:
<audio controls= "Controls" >
<source src= "Xx.ogg" type= "Audio/ogg" >
<source src= "Xx1.mp3" type= "Audio/mpeg" >
Your browser is not yet supported.
</audio>
Its properties are less than video height, width,PostEr
HTML5 audio audio and video description