This tutorial will show you how to embed a video into your HTML page.
Using <embed> tag
You can embed the video file into your HTML page using the <embed> tag. Upload the video file to the server and add the following code to your HTML page:
<embed src="video.avi" />
Where video.avi is your video file name. It can be also replaced with the root to your video file like:
<embed src="/files/videos/video.avi" />
Using the <object> tag
You can embed the video file into your HTML page using the <embed> tag. Upload the video file to the server and add the following code to your HTML page:
<object data="video.avi" type="video/avi" />
Where video.avi is your video file name. It can be also replaced with the root to your video file like:
<object data="="/files/videos/video.avi" type="video/avi" />
Note: Both above methods require the installation of the plug-in that will allow to play video through the browser.
Using the video services
You can also use some video services like YouTube to upload the videos and embed them to your website page. You can use the Embed options offered by the video service you use and then paste the code to your page. For the YouTube service the code would be something like this:
<iframe width="425" height="349" src="video_URL " frameborder="0" allowfullscreen></iframe>