gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
buatkan contoh html kode video
- User
buatkan contoh html kode video
- Assistant
Berikut adalah contoh kode HTML sederhana untuk menyematkan (embed) video ke dalam sebuah halaman web:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML Video Example</title> </head> <body> <h1>Example of Embedding a Video</h1> <!-- Menggunakan elemen <video> --> <video width="640" height="360" controls> <source src="video.mp4" type="video/mp4"> <source src="video.webm" type="video/webm"> Your browser does not support the video tag. </video> <!-- Menyematkan video YouTube menggunakan iframe --> <h2>Embed YouTube Video</h2> <iframe width="640" height="360" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.