Click here to Skip to main content
15,889,651 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
how can I add video to html page???
Do I need to convert a video in a specific format???
Posted
Updated 26-Oct-18 22:12pm

Upload the videos to the server or for testing purpose in the folder on your computer where your html files are then use any of the two tags given below:

<embed src="myvideo.avi" />

or

<object data="myvideo.avi">

in your html file. replace the src or data which ever applicable to the name of your video e.g your video name is holiday.mp4 so src="holiday.mp4" or data="holiday.mp4". About conversion to specific format, not necessary if your video is in any popular format like avi,mp4 ,flv,3gp,ogg ,mp3,mov etc. you can set height, width and other attrib.
 
Share this answer
 
Comments
Manas Bhardwaj 8-Jun-12 15:17pm    
Correct!
 
Share this answer
 
Comments
Manas Bhardwaj 8-Jun-12 15:18pm    
+5 for links!
Sandeep Mewara 9-Jun-12 0:57am    
Thanks.
thatraja 9-Jun-12 3:20am    
5!
Sandeep Mewara 9-Jun-12 6:41am    
Thanks Raja.
SoMad 9-Jun-12 17:49pm    
I agree, great links. +5.

Soren Madsen
Let me Google that for you.[^]

Google is free. Use it as much as you can. 99 out of 100 times, you will find answer on your own. It saves so much time and if you still have issues, please come back and someone should be able to help you.
 
Share this answer
 
Dear Friend,

You can use HTML5
XML
<video> Tag

<video width="500" height="300" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
</video>

But the browser you use, should support HTML5.

Regards,
AP
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900