HTML <video> poster Attribute

❮ HTML <video> tag

Example

<video poster="image.jpg" width="340" height="260" controls>
  <source src="video.mp4" type="video/mp4">
  <source src="video.webm" type="video/webm">
  Your browser does not support the video tag.
</video>

Meaning

The poster attribute is set to the URL of an image that the browser will use in place of the video before it is loaded and playing.


Standard Syntax

<video poster="URL">...</video>



Browser Support




Status







Attribute Values

Value Description
URL

Value can be

  • An absolute URL - source within or another web site ( href="http://www.example.com/index.html")
  • A relative URL - source within a web site ( href="index.html")
❮ HTML <video> tag