Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML video poster Attribute

HTML

HTML video Tag Reference HTML

Example

A video player with a poster image:

<

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

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the poster property.

Note: Internet Explorer 8 and earlier IE versions are not supported.


Definition and Usage

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


Differences between HTML 4.01 and HTML5


Syntax

Attribute values

Value Description
URL Specifies the URL of an image file.

Possible values:

  • Absolute URL - points to a URL on another site (e.g. href="http://www.example.com/poster.jpg")
  • Relative URL - points to a URL on the same site (e.g. href="poster.jpg")
  • |

    HTML video Tag Reference HTML