gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
buat video di html
- User
buat video di html
- Assistant
Untuk membuat video di dalam halaman HTML, Anda dapat menggunakan elemen
<video>yang tersedia dalam HTML5. Berikut adalah langkah-langkah untuk membuat video dan menampilkan kontrol video dasar:Contoh Kode HTML Untuk Menampilkan Video
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Video Demo</title> </head> <body> <h1>Ini adalah contoh video di HTML</h1> <!-- Elemen video --> <video width="640" height="360" controls> <source src="video-sample.mp4" type="video/mp4"> <source src="video-sample.ogg" type="video/ogg"> <source src="video-sample.webm" type="video/webm"> Your browser does not support the video tag. </video> <p>Jika video tidak dapat diputar, mohon pastikan browser Anda mendukung format video atau format file sudah benar.</p> </body> </html>