Converting videos to various formats can be challenging and time-consuming.
A more convenient approach is to embed YouTube videos directly on your web page for playback.
When you save or play a video on YouTube, it displays an ID (like tgbNymZ7vqY) that you can use to reference your video in HTML code.
To play your video on a web page, follow these steps:
<iframe>
element in your web page.src
attribute to point to the video URL.width
and height
attributes to specify the dimensions of the player.<iframe width=”420″ height=”315″ src=”https://www.youtube.com/embed/tgbNymZ7vqY”> </iframe> |