In this blog I will told you how to Use of Video on Web Page.
There are two types of use of of video on web page.
i).Webpage that plays a video infinite number of times with controls.
ii).Webpage that plays a video without controls.
First we see that how to create Webpage that plays a video infinite number of times with controls.
1. Open notepad and type following html code or you can copy from here.
<html>
<head><title>Video Files</title>
</head>
<body bgcolor="wheat"text="maroon">
<center>
<h1><u>To Display Video Files with controls</u></h1>
<br><br><br>
<embed src="Wildlife.wmv" loop=2 height=200 width=250 loopdelay=15000><br>
</center></body></html>
2. After copying this html code save the file using .htm or .html extension.
3. After saving this file open the file in internet explorer or fire fox or google chrome browser.
4. You will get following output. In this output your video get played with controls.
Outout:
Note That: The video file which you wants to play as background music must present in that folder where you are saving this file or give file path in html code.
Then Webpage that plays a video without controls.
1. Open notepad and type following html code or you can copy from here.
<html>
<head><title>Video Files</title>
</head>
<body bgcolor="wheat"text="maroon">
<center>
<h1><u>To Display Video Files without controls</u></h1>
<br><br><br>
<img dynsrc="Wildlife.wmv"loop=2 height=200 width=250 loopdelay=15000><br>
</center>
</body></html>
2. After copying this html code save the file using .htm or .html extension.
3. After saving this file open the file in internet explorer or fire fox or google chrome browser.
4. You will get following output. In this output your video get played without any controls.
Output:
Note That: The video file which you wants to play as background music must present in that folder where you are saving this file or give file path in html code.
Thank You !
Post a Comment