+ 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

7th Oct 2024, 2:51 PM
Ngabo Daniel
Ngabo Daniel - avatar
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>
7th Oct 2024, 4:09 PM
Melkon
Melkon - avatar
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.
7th Oct 2024, 5:31 PM
I'm Me
I'm Me - avatar
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>
8th Oct 2024, 2:23 PM
Muhammad Naveed
Muhammad Naveed - avatar