HTML Media Elements

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Parameters

AttributeDetails
widthSets the element's width in pixels.
heightSets the element's height in pixels.
<source>Defines resources of the audio or video files
trackDefines the text track for media elements
controlsDisplays controls
autoplayAutomatically start playing the media
loopPlays the media in a repeated cycle
mutedPlays the media without sound
posterAssigns an image to display until a video is loaded

Remarks

Support in browsers

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support3.03.5 (1.9.1)9.010.503.1
<audio>: PCM in WAVE(Yes)3.5 (1.9.1)No support10.503.1
<audio>: Vorbis in WebM(Yes)4.0 (2.0)No support10.603.1
<audio>: Streaming Vorbis/Opus in WebM via MSE?36.0???
<audio>: Vorbis in Ogg(Yes)3.5 (1.9.1)No support10.50No support
<audio>: MP3(Yes)(Yes)9.0(Yes)3.1
<audio>: MP3 in MP4????(Yes)
<audio>: AAC in MP4(Yes)(Yes)9.0(Yes)3.1
<audio>: Opus in Ogg27.015.0 (15.0)???
<video>: VP8 and Vorbis in WebM6.04.0 (2.0)9.010.603.1
<video>: VP9 and Opus in WebM29.028.0 (28.0)?(Yes)?
<video>: Streaming WebM via MSE?42.0 (42.0)???
<video>: Theora and Vorbis in Ogg(Yes)3.5 (1.9.1)No support10.50No support
<video>: H.264 and MP3 in MP4(Yes)(Yes)9.0(Yes)(Yes)
<video>: H.264 and AAC in MP4(Yes)(Yes)9.0(Yes)3.1
any other formatNo supportNo supportNo supportNo support3.1


Got any HTML Question?