+ 3
How to add a video in html?
3 odpowiedzi
+ 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!!
+ 3
Thanks
+ 2
you are welcome