HTML <video> poster Attribute
Example
A video player with a poster image:
<video controls poster="/images/w3html5.gif">
<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 Yourself »
Definition and Usage
The poster attribute specifies an image to be shown while the video is downloading, or until the user hits the play button. If this is not included, the first frame of the video will be used instead.
Browser Support
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
poster | 4.0 | 9.0 | 3.6 | 4.0 | 10.5 |
Differences Between HTML 4.01 and HTML5
The <video> tag is new in HTML5.
Syntax
<video poster="URL">
Attribute Values
Value | Description |
---|---|
URL | Specifies the URL of the image file. Possible values:
|
❮ HTML <video> tag