+ 1
How to insert video to html? not youtube videos.
How to insert video to html? not youtube videos.
3 ответов
+ 16
<video controls>
<source src="the source" type="video/mp4>
<source src="the source" type="video/ogg">
Video isn't supported by your browser
</video>
This code would output a video if it works on mp4 or ogg file formats. It would try the first file format first, and if it isn't supported by the browser it will try the next, and so on if you add more formats. If none of the file formats are supported, it will output "Video isn't supported by your browser"
+ 5
Good question!
You can also use the <video src = "#" controls> </ video>
You have two ways First, you can use the <iframe src = "#"> </ iframe> tag. It will help you greatly! Second, you need to use file hosting with a direct link to the file, ie you have to upload your file to the hosting and take the link, the shortened links will not work!
I hope to your understanding :)
@Sololearn
0
<video>