View Full Version : How to insert video into a web page

May 5th, 2010, 03:34 PM
Using The <object> Tag
The purpose of the <object> tag is to embed multimedia elements in web page.

The following code fragment displays an AVI file embedded in a web page:

<object data="video.avi" type="video/avi" />

Youtube Video
Go to the video you'd like to add to your page on YouTube, look for the section labled Embed, and by simply clicking your mouse within that field, all the text in that field is highlighted. You then right mouse click in that field, and select Copy from your browser's drop down that will appear when you right click in the field.

Here's what the embed code for the video above looks like:

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/gase;pw=en&fs=1">
</param><param name="allowFullScreen" value="true">
</param><param name="allowscriptaccess" value="always">
</param><embed src=http://www.youtube.com/v/gase;pw=en&fs=1
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">

You can also use 3rd party programs such as JW Player (http://www.longtailvideo.com/players/jw-flv-player/) or CoffeeCup Web Video Player (http://www.coffeecup.com/video-player/)