Audio Player Example:
Responsive Video Player with Subtitles:
<audio controls>
<source src="https://www.w3schools.com/html/horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<figure>
<video controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
<track src="https://www.w3schools.com/subtitles.srt" kind="subtitles" srclang="en" label="English">
Your browser does not support the video element.
</video>
<figcaption>Sample Video with Subtitles</figcaption>
</figure>
Embeds an audio player supporting MP3 or WAV formats. Multiple <source> elements can be used.
Embeds a video player with optional subtitles, captions, or multiple formats.
Specifies media resources for <audio> or <video> allowing browser format selection.
Specifies text tracks like subtitles or captions for media elements.
Groups media content with an optional caption for semantic meaning.
Provides a caption for content inside a <figure>.
src: Media file path. type: MIME type. kind: Track type. srclang: Track language. label: Track name. controls: Adds playback UI.