HTML | poster Attribute
The HTML poster Attribute is used to display the image while video downloading or when the user clicks the play button. If this image not set then it will take the first frame of video as a poster image.
Applicable:
It is mainly used in <video> element.
Syntax:
<video poster="URL">
Attribute Values: It contains a single value URL which specifies the link of source image. There are two types of URL link which are listed below:
- Absolute URL: It points to another webpage.
- Relative URL: It points to other files of the same web page.
Example:
<!DOCTYPE html> <html> <head> <title> HTML video poster Attribute </title> </head> <body> <center> <h1 style="color:green;"> GeeksforGeeks </h1> <h3>HTML poster Attribute</h3> <video width="400" height="200" controls poster= <source src= type="video/mp4"> <source src= type="video/ogg"> </video> </center> </body> </html> |
Output:

Supported Browsers: The browsers supported by HTML poster Attribute are listed below:
- Google Chrome 4.0
- Internet Explorer 9.0
- Firefox 3.5
- Apple Safari 4.0
- Opera 10.5
Recommended Posts:
- HTML | <video> poster Attribute
- HTML | DOM Video poster Property
- HTML | name Attribute
- HTML | <a> rel Attribute
- HTML | <img> src Attribute
- HTML | rel attribute
- HTML | <bdo> dir Attribute
- HTML | max attribute
- HTML | <li> value Attribute
- HTML | value Attribute
- HTML src attribute
- HTML | alt attribute
- HTML | <map> name Attribute
- HTML | dir Attribute
- HTML | for Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



