English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The use of the poster attribute of the <video> tag, the poster attribute specifies the image to be displayed when downloading the video or until the user clicks the play button. If not included, the first frame of the video will be used.
Video player with poster image:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial Website(oldtoolbag.com)</title> </head> <body> <video controls poster="/run/html/views.png"> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the poster attribute.
Note: Internet Explorer 8 and earlier IE versions do not support the <video> tag.
The poster attribute specifies the image to be displayed while downloading the video or until the user clicks the play button. If not included, the first frame of the video will be used instead.
<video> tag is part of HTML5New tag.
<video poster="URL">
Value | Description |
---|---|
URL | Specify the URL of the image file. Possible values:
|