"> " />
Easy Tutorial
❮ Att Iframe Height Att Input Step ❯

HTML <video> poster Attribute

HTML <video> Tag

Example

A video player with a preview image:

&lt;video controls poster="/images/w3html5.gif">
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Browser Support

All major browsers support the poster attribute.

Note: Internet Explorer 8 and earlier versions do not support the <video> tag.


Definition and Usage

The poster attribute specifies an image to be shown while the video is downloading, or until the user hits the play button.


Differences Between HTML 4.01 and HTML5

The <video> tag is new in HTML5.


Syntax

Attribute Values

Value Description
URL Specifies the URL of the image file. Possible values: absolute URL - points to another website URL (e.g., href="http://www.example.com/poster.jpg")<br> relative URL - points to a URL within the same site (e.g., href="poster.jpg")

❮ Att Iframe Height Att Input Step ❯