HTML poster Attribute

❮ HTML Attributes


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


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

<element poster="URL">

Browser Support


Applies to:

The poster attribute can be used on the following element:

Element Attribute
<video> poster

Attribute Values

Value Description

Value can be

  • An absolute URL - source within or another web site ( href="")
  • A relative URL - source within a web site ( href="index.html")
❮ HTML Attributes