HTML poster attribute

poster attribute represents the location (address) of the image shown before the video playback or when the video data is not available.


 <video src="files/Hummingbird.mp4"  height="350" width="350" poster="files/web.png" controls>
Try </>

poster attribute values

The value of poster attribute is the address of the image.

The poster frame (image) should be one of the non-blank frames of the video that give an idea about what kind of data is present in the video.

The poster frame should be relevant to the video data.

Related Tags

<video> tag adds video in a page. video tag supports the poster attribute.

Related Pages

controls attribute adds controls (play, pause, volume control) in a video.

height and width attributes represent the vertical and horizontal dimensions of the video or poster frame.

Was this article helpful?




Get the newsletter