Thursday, December 1, 2011

HTML 5 Media Elements With Example


The new HTML5 media elements are ..

<audio> : For audio content, sounds, music or other audio streams
<video> : For video content, such as a movie clip or other video streams
<source> : For media resources for media elements, defined inside video or audio elements
<embed> : For embedded content, such as a plug-in
<track> : For text tracks used in media players

Audio example :


<audio controls="controls">
<source src="song.ogg" type="audio/ogg" />
</audio>


Video example :

<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4" />
</video>

Stumble
Delicious
Technorati
Twitter

0 Comments:

Post a Comment