+ 1
how to add video src in html file
i am confused on how i can add video in html file if you know an answer you can reply
3 RĂ©ponses
+ 2
To add a video in an HTML file, you can use the <video> tag. Simply include the src attribute to link to your video file, and make sure to include controls so users can play or pause the video. Here's a basic example:
<video src="video.mp4" controls> </video>
0
To embed a video in your HTML, use the <video> tag. Specify the video's source using the src attribute.
For example:
<video src="myvideo.mp4" controls></video>
This will display the video named "myvideo.mp4" with basic playback controls.
0
For Control use this code đ
<Video control>
<source src="filepath.mp4" type="video/mp4">
</video>
For autoplay use this code đ
<video autoplay>
<source src="filepath.mp4" type="video/mp4">
</video>
For loop use this code đ
<Video loop>
<source src="filepath.mp4" type="video/mp4">
</video>