How to Embed YouTube Video in Web Page? - BunksAllowed

BunksAllowed is an effort to facilitate Self Learning process through the provision of quality tutorials.

Community

How to Embed YouTube Video in Web Page?

Share This

Some web pages contain videos, which are uploaded to YouTube channels. These videos can be included in a web page in two different ways, (i) embedding the video using iframe, and (ii) adding the video link as an object. The following example shows two different techniques for embedding YouTube videos on a web page.

<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Insert title here</title> </head> <body> <iframe width="420" height="315" src="https://www.youtube.com/embed/xz7ZoHbp0vQ"> </iframe> <object data="http://www.youtube.com/embed/W7qWa52k-nE" width="560" height="315" frameborder="0" allowfullscreen></object> </body> </html>

Happy Exploring!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.