I. Mã Nhúng mặc định của YouTube
Mã nhúng
<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/_GuOjXYl5ew" width="100%"></iframe>
🔰 Note
Bạn có thể chỉnh sửa các thông số sau :⨮ Chiều rộng.
width="560
"
⨮ Chiều cao.
height="100%
"
II. Tự động phát trên YouTube + Tắt tiếng
Mã nhúng
<iframe height="315" src="https://www.youtube.com/embed/_GuOjXYl5ew?autoplay=1&mute=1" width="100%"></iframe>
🔰 Note
Bạn có thể chỉnh sửa các thông số sau :⨮ Tự động phát.
autoplay=1
⨮ Tắt tiếng.
mute=1
III. Vòng lặp YouTube
Mã nhúng
<iframe height="315" src="https://www.youtube.com/embed/_GuOjXYl5ew?playlist=tgbNymZ7vqY&loop=1" width="100%"></iframe>
🔰 Note
Bạn có thể chỉnh sửa các thông số sau :⨮ Tự động chuyển sang Video khác khi kết thúc Video.
loop=1
IV. Kiểm soát YouTube
Mã nhúng
<iframe height="315" src="https://www.youtube.com/embed/_GuOjXYl5ew?controls=0" width="100%"></iframe>
🔰 Note
Bạn có thể chỉnh sửa các thông số sau :⨮ Không hiển thị trình điều khiển của Youtube.
controls=0