HTML and CSS Reference
In-Depth Information
ondragstart, ondrop, onerror, onfocus, onhashchange, onkeydown, onkeypress,
onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseout,
onmouseover, onmouseup, onmousewheel, onresize, onscroll, onselect,
onstorage, onsubmit, onunload
Element-Specific Attributes
autobuffer This Boolean attribute indicates the browser should begin buffering a video
right away. This attribute should be used if it is assumed the user will play the video. This
attribute is meaningful only if autoplay is not set, as in that case the browser will play
video as soon as it can, allowing no time for further buffering.
autoplay This Boolean attribute indicates the browser should begin playing a video after
page load once enough content has been received and it is reasonable to play without
interruptions.
controls This Boolean attribute is set to indicate whether or not the browser should present
controls for video, such as playback, pause, volume, and seek. If not present, no controls
will be shown and it will be up to the developer to script the control of the video element.
loop This Boolean attribute, if present, indicates that the video should loop.
poster This attribute is set to the URL of an image that the browser will use in place of the
video before it is loaded and playing.
src This attribute is set to the URL of the video to show.
Examples
<video src="movies/movie1.ogg" autoplay>
<p> No support for HTML5 <code> video </code> element. </p>
</video>
<video src="movies/movie1.ogg" poster="coming.png" loop
playcount="3" start="45">
<p> No support for HTML5 <code> video </code> element. </p>
</video>
<video>
<source src="movie2.ogg" type="video/ogg">
<source src="movie2.mov">
<p> No support for HTML5 <code> video </code> element. </p>
</video>
Compatibility
HTML5
Firefox 3.5+, Opera 10+, Safari 3.1+
Notes
• Alternate content should be placed inside of the video element for browsers that do
not support it.
Search WWH ::




Custom Search