..
Write the same code in a note pad or other text editor and save it with html extention. Open the saved file on your google crome or Mozila browser to see the output.
- <!DOCTYPE html>
- <html>
- <head>
- <title>Gyan Tutorial Example</title>
- </head>
- <body>
- <p>Playing a YouTube Video in HTML</p>
- <iframe width="420" height="315" src="https://www.youtube.com/embed/IURWMZZ4ubk">
- </iframe>
- <p>YouTube Autoplay</p>
- <iframe width="420" height="315" src="https://www.youtube.com/embed/l6gwkmjMdTQ">
- </iframe>
- <p>YouTube Loop</p>
- <iframe width="420" height="315" src="https://www.youtube.com/embed/L0Lw2yYsGhY">
- </iframe>
- <p>YouTube Controls</p>
- <iframe width="420" height="315" src="ttps://www.youtube.com/embed/IURWMZZ4ubk">
- </iframe>
- <p>Example - Using <object> (deprecated)</p>
- <object width="420" height="315" data="https://www.youtube.com/embed/l6gwkmjMdTQ">
- </object>
- <p>Example - Using <embed> (deprecated)</p>
- <embed width="420" height="315" src="https://www.youtube.com/embed/L0Lw2yYsGhY">
- </body>
- </html>