16 Aug 2015

New Multimedia Tags in HTML5

Audio
Music or other types of audio streams are now added to web pages via the Audio tag. It is supported
by all five major browsers.Attributes for the Audio tag include Autoplay, Controls, Loop, Preload, and SRC.

<audio controls="controls">
<source src="covered_bridge.ogg" type="audio/ogg"/>
<source src="covered_bridge.mp3" />
Your browser does not support the audio element
</audio>

Video
The Video tag has caused much excitement among developers. One key advantage to the Video tag is the ability to embed multiple formats, so the browser can make the decision to play the best choice.
Shown here is an example of a web page with a video using the Video tag. Attributes for the Video tag include Audio, Autoplay, Controls, Height, Loop, Poster, Preload, SRC, and Width.
Share:

0 comments:

Post a Comment