6
6
<div class="media-container">
<h2>Audio Player</h2>
<p>
Below is an example of an audio player with controls enabled:
</p>
<audio controls>
<source src="audio-sample.mp3" type="audio/mpeg">
<source src="audio-sample.ogg" type="audio/ogg">
Your browser does not support the audio element.
</audio>
</div>
<div class="media-container">
<h2>Video Player</h2>
<p>
Below is an example of a video player with controls, autoplay,
and a poster image:
</p>
<video controls autoplay poster="poster-image.jpg"
width="640" height="360">
<source src="video-sample.mp4" type="video/mp4">
<source src="video-sample.ogg" type="video/ogg">
Your browser does not support the video element.
</video>
</div>
</body>
</html>