HTML and CSS Reference
In-Depth Information
<a href="" st yle="text-decoration: none;">
<img src=""
alt="Get Microsoft Silverlight" style="border-style: none;"/>
Notice how the <object> tag now includes many pieces of information. The <param> and <Playlist>
elements supply a great deal of data such as the path of the Silverlight compressed output file ( .xap ) and
the configuration of the video being played.
HTML5 Audio and Video Tags
In the previous sections, you learned how pre-HTML5 web applications play audio and video files using
<object> tag. Now let's turn our attention to HTML5 and see how HTML5 natively supports audio and
video playback.
HTML5 audio and video support comes in the form of the <audio> and <video> markup elements,
respectively. Each of these tags has a set of attributes you can use to configure how files are played.
Additionally, these elements expose properties, methods, and events that you can program using
JavaScript or jQuery. The following sections discuss the <audio> and <video> elements in detail.
Playing Audio
The HTML5 <audio> tag allows you to embed and play audio files in a web page. In its basic form, the
<audio> tag looks like Listing 3-4.
Search WWH ::

Custom Search