HTML and CSS Reference
In-Depth Information
Poster Attribute
One additional attribute available for the
<video>
element is the
poster
attribute. The
poster
attribute allows us to specify an image, in the form of a URL, to be shown before
a video is played. The example below uses a screen capture from the video as the poster for
the Earth video.
1.
<video src="earth.ogv" controls
poster="earth-video-screen-
shot.jpg"
></video>
Figure 9.12
A video clip showing a poster image before it is played
Video Fallbacks
As with the
<audio>
element, video fallbacks are also necessary. The same markup
format, with multiple
<source>
elements for each file type and a plain text fallback, also
applies within the
<video>
element.
Search WWH ::
Custom Search