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>
</video>
</>

Attribute values

All possible values of poster attribute

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

The tags that support poster attribute

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



Was this article helpful?

 

Email:

Message: