ADDING A VIDEO TO UR BLOG OR WEBSITE
Playing a YouTube Video in HTML
- To play your video on a web page, do the following:
- Upload the video to YouTube
- Take a note of the video id
- Define an <iframe> element in your web page
- Let the src attribute point to the video URL
- Use the width and height attributes to specify the dimension of the player
Example:
<html>
<body>
<iframe width="560" height="315" src="https://www.youtube.com/embed/8gTeE6pa4Kg?rel=0&controls=0" frameborder="0" allowfullscreen></iframe>
</body>
</html>
Thanks and Regards,
Tech Bird
Comments