video (HTML5)

The HTML  <video> element is used to embed video content in an HTML or XHTML document.

Properties & Events

KeyDescriptionAvailability
autobufferA Boolean attribute; if specified, the video will automatically begin buffering even if it's not set to automatically play.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
autoplayA Boolean attribute; if specified, the video will automatically begin to play back as soon as it can do so without stopping to finish loading the data.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
bufferedAn attribute you can read to determine which time ranges of the media have been buffered.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
controlsIf this attribute is present, Gecko will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
heightThe height of the video's display area, in CSS pixels.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0
loopA Boolean attribute; if specified, we will, upon reaching the end of the video, automatically seek back to the start.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
mutedA Boolean attribute which indicates the default setting of the audio contained in the video.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
posterA URL indicating a poster frame to show until the user plays or seeks.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
preloadThis enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience.
chrome 3.0safari ??Firefox 3.6ie 9.0opera 10.5
srcThe URL of the video to embed.
chrome 3.0safari ??Firefox 1.0ie 1.0opera 1.0
widthThe width of the video's display area, in CSS pixels.
chrome 1.0safari 1.0Firefox 1.0ie 1.0opera 1.0

Examples having uses of: 'video'

10 votes
10k views

HTML5 Video

The HTML5 <video> element also has methods, properties, and events and methods for playing, pausing, and loading, for example. Properties (e.g. duration, volume, seeking) that you can read or set. There are also DOM events that can notify you, for example, when the <video> element begins to play, is paused, is ended, etc.