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
200 characters left
Include your email address to get a message when this question is answered.
Submit
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

You Might Also Like

Embed a YouTube Video8 Simple Steps to Embed a Video or Playlist from YouTube
Embed Video in PowerPoint5 Ways to Embed a Video File in Microsoft PowerPoint
Get an Embed Code from YouTube6 Simple Steps to Get an Embed Code from YouTube
Add a Video to Powerpoint on a MacAdd a Video to Powerpoint on a Mac
Put a Video on PowerPoint Insert a Video into a PowerPoint
Insert a Hyperlink Insert a Hyperlink Using Rich Text or HTML: 3 Methods
Embed Pictures Embed Images in Documents and Websites
Insert Images with HTMLInsert Images with HTML
Save Video Using Inspect Element Save a Video Through Inspect on Chrome, Firefox, Edge, & Safari
Embed a Video on Reddit Embed or Upload a Video to Reddit using Any Device
Add Fun Games to Your Web Site for FreeAdd Fun Games to Your Web Site for Free
Put a Word Document on Your WebsitePut a Word Document on Your Website
Embed Video in EmailEmbed Video in Email
Create a Link Create a Link: Easy, Step-by-Step Instructions
Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 31 people, some anonymous, worked to edit and improve it over time. This article has been viewed 440,195 times.
How helpful is this?
Co-authors: 31
Updated: February 24, 2025
Views: 440,195
Thanks to all authors for creating a page that has been read 440,195 times.

Is this article up to date?

Advertisement