+ 3

How to add a video in html?

7th Dec 2020, 12:57 PM
Captain_Murtuza
Captain_Murtuza - avatar
3 Antworten
+ 3
if your video is stored locally then use <video tag> for example: <video width="100%" controls> <source src="PATH_TO_YOUR_VIDEO.mp4" type="video/mp4"> </video> but if you want to render a youtube video on your page, just use <iframe> for example: <iframe width="560" height="315" src="https://www.youtube.com/embed/lxGNFeZa3lQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> (note that if you browse a youtube video there's share button that will provide you the iframe tag to this video) good luck!!
7th Dec 2020, 1:14 PM
Hayyan Jarboue
Hayyan Jarboue - avatar
+ 3
Thanks
20th Dec 2020, 11:12 AM
Captain_Murtuza
Captain_Murtuza - avatar
+ 2
you are welcome
20th Dec 2020, 1:13 PM
Hayyan Jarboue
Hayyan Jarboue - avatar