PDF download Download Article PDF download Download Article

Do you have a website and you want to add videos to it? If so, you've come to the right place. There are many ways to do this, and here are just some.

Method 1
Method 1 of 4:

YouTube Videos

PDF download Download Article

This is the simplest of all methods. This way, you can embed videos in your web page with no code knowledge whatsoever. Also, you do not need to host the video yourself.

  1. Go to YouTube .
  2. Search for the video which you want to include, or upload your own .
    Advertisement
  3. Find the embed option on the page, or, if you are watching this YouTube video on a website other than youtube.com, (in other words, if it is already embedded) the option will appear at the end of the video.
  4. ( Right Click > Copy or Ctrl > C for Windows users.)
  5. ( Right Click > Paste or Ctrl > V for Windows users)
  6. Advertisement
Method 2
Method 2 of 4:

Inline Video

PDF download Download Article

Inline video is another easy way to include video in your webpage. The problem with this kind of video though, is that it can be found annoying and some people may have changed their browser options so that inline videos are not shown. It is also not easy to control the way that the video is played.

  1. The recommendation is that you upload the video to your own server, rather than hot linking (directly using) video on other websites.

  2. For example:
    <img="Example.avi">
  3. Advertisement
Method 3
Method 3 of 4:

Plug-ins

PDF download Download Article

Plug-ins are mini programs that you can embed in a web page. In the case of video playback, it is a media player. Some examples of these include Windows Media Player , QuickTime and Real Media .

  1. This can be done in a few ways. Here are some examples:
  2. Advertisement

QuickTime Movie (.mov)



  1. <object width="160" height="144"
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="Example.mov">
    <param name="autoplay" value="true">
    <param name="controller" value="false">

    <embed src="sample.mov" width="160" height="144"
    autoplay="true" controller="false"
    pluginspage="http://www.apple.com/quicktime/download/">
    </embed>

    </object>
  2. Advertisement

Real Video Movie (.rm/.ram)



  1. <object width="320" height="240"
    classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA">
    <param name="controls" value="ImageWindow" />
    <param name="autostart" value="true" />
    <param name="src" value="Example.ram" />
    </object>
  2. Advertisement
Method 4
Method 4 of 4:

Hyperlinks

PDF download Download Article

One of the other ways to add a video to a web page is to hyperlink it. This simply means linking to it. The file opens on its own, using a plug-in (see above).

  1. 1
    Use the following simple code as an example:

    <a href="Example.avi">
    Click here to play a video file
    </a>
  2. 2
    Add this code to your webpage, changing Example.avi to your file name, and changing some of the parameters if you like.
  3. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      Show More Tips
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Do not upload anything copyrighted to YouTube, or use/link to any copyrighted video on your website. This is a criminal offence in most countries .
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 437,677 times.

      Is this article up to date?

      Advertisement