codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML YouTube

HTML YouTube

Embed a video player.

Use an iframe with the video’s embed URL. Replace VIDEO_ID with a real ID. External embeds may be blocked in this preview but work on your own site.

Example code

<iframe width='280' height='160' src='https://www.youtube.com/embed/VIDEO_ID' title='Video' allowfullscreen></iframe>'

Run this code in the online editor

← HTML SVGGeolocation API →