Atribut poster HTML <video>
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 poster
menentukan 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:
|
tag <video> HTML