HTML and video and poster properties
When you use the poster property of the label, the image you set, a video player with a preview, is displayed on the page, refer to the following example:
Video player with preview:
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Try it out . . .
Browser support
Poster properties are supported by all major browsers.
Note: Internet Explorer 8 and earlier versions of IE do not support the label.
Definitions and usages
The poster property specifies the image that appears when the video is downloaded, or before the user clicks the play button.
The difference between HTML 4.01 and HTML5
The label is a new HTML5 label.
Grammar
The property value
value | describe |
---|---|
URL |
Specifies the URL of the image file.
Possible value:
|
![HTML video poster property](/media/error_img.png)