Sampai saat ini, belum ada standar untuk menampilkan video / film pada halaman web.
Saat ini, video yang paling ditampilkan melalui plug-in (seperti flash). Namun, browser yang berbeda mungkin memiliki berbagai plug-in.
"HTML5" mendefinisikan elemen baru yang menentukan cara standar untuk menanamkan video / film pada halaman web Anda.
Berikut ini sontoh script html untuk menampilkan video di web adna:
<html>
<body>
<video controls="" height="240" width="320"> // ukuran
<source src="movie.mp4" type="video/mp4"></source> //tipe video
<source src="movie.ogg" type="video/ogg"></source> //keterangan
Your browser does not support the video tag.
</video>
</body>
</html>
Untuk script yang lebih berfariasi baca selengkapnya?
Berikut ini sontoh script html untuk menampilkan video di web adna:
<html>
<body>
<video controls="" height="240" width="320"> // ukuran
<source src="movie.mp4" type="video/mp4"></source> //tipe video
<source src="movie.ogg" type="video/ogg"></source> //keterangan
Your browser does not support the video tag.
</video>
</body>
</html>
Untuk script yang lebih berfariasi baca selengkapnya?
No comments:
Post a Comment