HTML/CSS

Cara Memasang (Embed) Video YouTube di HTML

Langkah mudah menampilkan video YouTube ke dalam website menggunakan tag iframe agar konten blog jadi lebih interaktif.

<div style="position: relative; padding-bottom: 56.25%; height: 0;">
  <iframe src="https://www.youtube.com/embed/VIDEO_ID_KAMU" 
    style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" 
    frameborder="0" allowfullscreen>
  </iframe>
</div>
3 Views
Eksplor Materi Lainnya