How to embed a video

The Internet has evolved a lot in its few decades of existence, and now you can insert more than just images to your web page. Videos and presentations are there for you to embed on your web page, and you don't need to sweat to do it. The only thing you need to do is to insert an <object /> tag in your web page's code, and then specify a few parameters and the source of the file to complete the task.

How to embed a video or slide show

+ First, upload your video or presentation to your preferred central.
+ Next, copy the code these websites provide onto your web page's code.


We uploaded a slide show to and we grabbed the code they provide for embedding the presentation.

<object style="margin:0px" width="425" height="355">
<param name="movie" value=" doc=think-green-0001-1199750629909440-5" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<embed src=" doc=think-green-0001-1199750629909440-5" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed>

This is the result we got:

Easier, impossible... however,

The <embed /> tag is not valid XHTML! What are we to use instead? Instead, we need to use the <object /> tag and the attribute data="".

For example:

<object style="margin:0px" width="425" height="355" data="mymovie.swf" />

Knowledge + Computers