HTML5 Media Elements
HTML5 Media Elements
<audio> element
The <audio> element allows for the embedding of audio content within a webpage. It
supports various audio formats such as MP3, Ogg, and WAV.
<video> element
The <video> element is used to embed video content within a webpage. It supports
various video formats such as MP4, WebM, and Ogg.
<source> element
The <source> element is used as a child of <audio> and <video> elements to specify
alternative media resources. It allows for providing multiple sources in different formats
to ensure compatibility across different browsers.
<track> element
The <track> element is used to specify timed text tracks (subtitles, captions, descriptions,
chapters) for <audio> and <video> elements. It allows for providing additional textual
content synchronized with the media playback.
@designwithrehana DesignWithRehana