Atribut poster HTML <video>

tag <video> HTML

Contoh

Pemutar video dengan gambar poster:

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

Definisi dan Penggunaan

Atribut postermenentukan gambar yang akan ditampilkan saat video sedang diunduh, atau hingga pengguna menekan tombol putar. Jika ini tidak disertakan, bingkai pertama video akan digunakan sebagai gantinya.


Dukungan Peramban

Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung atribut tersebut.

Attribute
poster 4.0 9.0 3.6 3.1 10.5

Sintaksis

<video poster="URL">

Nilai Atribut

Value Description
URL Specifies the URL of the image file.

Possible values:

  • An absolute URL - points to another web site (like href="http://www.example.com/poster.jpg")
  • A relative URL - points to a file within a web site (like href="poster.jpg")

tag <video> HTML