How to Insert video in HTML || HTML Tutorial || Code With Neha
Вставка
- Опубліковано 15 жов 2024
- To add video we will use video tag
Within the video tag we will use source src attribute to call the address of the video
So source src="name of the file•format of the file" and the type will specify the type of the file
Here in this case its video/mp4
The video tag is used to embed video content in a document, such as a movie clip or other video streams.
The video tag contains one or more source tags with different video sources. The browser will choose the first source it supports.
The text between the video and /video tags will only be displayed in browsers that do not support the video element.
There are three supported video formats in HTML: MP4, WebM, and OGG.
If the video added is too large
then attribute width and height is used in the video tag to adjust it according to the screen
The attribute width and height are in pixel
To set a thumbnail according to our choice
We can use another attribute poster in the video tag itself
That's all for today Hope you all will get some help from this video
If it's so then don't forget to subscribe my channel Code with Neha and press the Bell Icon for Regular Updates
See you in the next video till then Stay Safe Stay Happy
#htmltutorial
#htmltutorialforbeginners
#webdevelopment
#webdevelopmenttutorial
#HowtoinsertvideosusingHTML
#HowtoaddVideoinHTML
#embedvideosinhtml
#videotaghtml
#HowtoInsertVideoinHTML
Informative videos
Very helpful video for beginners
Thank you 😊