HTML and CSS Reference
Listing 3-4. Simple Use of the <audio> Ta g
<audio src="Audio1.mp3" controls="controls"></audio>
The src attribute points to an audio file ( Audio1.mp3 ), and the controls attribute indicates that the
audio playback controls such as Play, Pause, and Volume should be displayed. Figure 3-1 shows how an
<audio> tag is rendered in IE9, Firefox, Chrome, and Opera.
n Note Not all the browsers support all the audio and video formats. You learn how to deal with the different levels
of support in various browsers later in this chapter.
Figure 3-1. <audio> element in different browsers