This blog will show you how to embed youtube video in html page using html5 video tag. Here is step by step tutorial.

  • Step 1 ) Search the youtube video using any Web Browser.

how to embed YouTube video in html page

  • Step 2 ) Copy the url from address bar

  • Step 3 ) Transfrom the copied url into

  • Write A simple html page and embed using iframe html tag, as below

The above sample page when open with a web brwoser will play the youtube video. It is the responsibility of web browser to play with html5 video tag or from other tag like object tag. you can read more about the YouTube API here:

Video instructions how to embed YouTube video in html page

Related Contents to follow