HTML poster Attribute

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.

Syntax

<video poster=”URL“>

Attribute Values

ValueDescription
URLSpecifies the URL of the image file.Possible values:An absolute URL – points to another web site (like href=”http://www.example.com/poster.jpg”)A relative URL – points to a file within a web site (like href=”poster.jpg”)

Example

A video player with a poster image:

The video poster attribute

The video poster attribute

Leave a comment

Your email address will not be published. Required fields are marked *