gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
cara buat html video
- User
cara buat html video
- Assistant
Berikut adalah contoh sederhana cara membuat HTML untuk menampilkan video menggunakan elemen
<video>:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Embed Video</title> </head> <body> <h1>Video HTML Demo</h1> <!-- Elemen video --> <video width="640" height="360" controls> <source src="video.mp4" type="video/mp4"> <source src="video.webm" type="video/webm"> <!-- Pesan fallback jika browser tidak mendukung elemen video --> Browser Anda tidak mendukung video HTML5. </video> <p>Gunakan tombol play untuk memulai video.</p> </body> </html>Penjelasan: