How to add a video on web page | Insert video in HTML | HTML video Tag
#HTMLVideoTag #InsertVideoinHTML
How to add video in HTML website
In this video, you will learn "How to add a video on web page using HTML". In which you also learn about how to use different-2 attributes in Video tag.
The video HTML element embeds a media player which supports video playback into the document. You can use video for audio content as well, but the audio element may provide a more appropriate user experience. You will also learn how to embed youtube videos on the website.
Attributes used in HTML Video Tag
1). How to use autoplay video in HTML
A Boolean attribute; if specified, the video automatically begins to playback as soon as it can do so without stopping to finish loading the data.
To disable video autoplay, autoplay="false" will not work; the video will autoplay if the attribute is there in the video tag at all. To remove autoplay, the attribute needs to be removed altogether.
In some browsers (e.g. Chrome 70.0) autoplay doesn't work if no muted attribute is present.
Now Get Free Video Courses, E-Books, Event Updates & Class Notes Anywhere Anytime
LEARN ANYWHERE WITH A2IT IOS AND ANDROID APP
https://a2itsoft.com/free-app
Free Download Educational App with Step-by-Step Guide To Learn or Teach in Smarter Way
our Websites:
https://www.a2itonline.com
/ a2itonline
video tag in HTML
Controls
If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback.
height
The height of the video's display area, in CSS pixels (absolute values only; no percentages.)
loop
A Boolean attribute; if specified, the browser will automatically seek back to the start upon reaching the end of the video.
muted
A Boolean attribute that indicates the default setting of the audio contained in the video. If set, the audio will be initially silenced. Its default value is false, meaning that the audio will be played when the video is played.
plays inline
A Boolean attribute indicating that the video is to be played "inline", which is within the element's playback area. Note that the absence of this attribute does not imply that the video will always be played on fullscreen.
src
The URL of the video to embed. This is optional; you may instead use the source element within the video block to specify the video to embed.
width
The width of the video's display area, in CSS pixels (absolute values only; no percentages).
Usage notes
Browsers don't all support the same video formats; you can provide multiple sources inside nested source elements, and the browser will then use the first one it understands.