Embed YouTube Videos
You can add YouTube videos to your web site by using either the
object HTML tags.
Based on the information from http://www.youtube.com/youtubeonyoursite:
- Use the youtube site to find the video you want
- Click the 'Share' button below the video
- Click the 'Embed' button next to the link they show you
- Copy the
iframecode given and paste it into the html of your web page.
Although YouTube gives you html code using the
iframe tag, you can also include your video using the
object tag, as seen in the example below.
A friend's ski video from Japan (or perhaps just use your favourite funny cat video)
<html> <body> <iframe src="http://www.youtube.com/embed/W7qWa52k-nE" width="560" height="315" frameborder="0" allowfullscreen></iframe> </body> </html>