how to use video in html
how to use video in html
1 Answer
You can easily add a video clip or movie to your website using the <video>
tag.
Example:
<video src="QandeelVideo.mp4" type="video/mp4" width="320" height="240" controls></video>
Output:
It's like an image there no control nothing move, it needs some controls isn't it?
let's add them using controls
attribute.
Example:
<video src="QandeelVideo.mp4" type="video/mp4" width="320" height="240" controls></video>
Output:
There are also some attributes to add for the <video>
tag like: loop - muted - poster - preload.
On the other hand, you can add a video is using <embed/>
tag. Note: <embed/>
tag does not need an ending/finishing tag.
and it supports some extensions like .swf .wmv .mov .mpeg .
Example:
<embed src="QandeelVideo.mpeg" autostart="false" height="240" width="320"/>
Output:
And there are some attributes for it: autostart - hidden - volume - loop - playcount.
answer Link