<video src="https://www.PuStudy.Com/resources/countdown.ogg" width="300" height="150" controls>
<p>If you are reading this, it is because your browser does not support the HTML5 video element.</p>
</video>
The above example demonstrates usage of the <video>
element.
The <video>
element allows you to embed videos or movies, and audio files with captions within your HTML documents.
The URL of the video file is provided in the src
attribute. You can also use the following attributes to determine the display and behavior of the video.
As well as the global HTML attributes, you can use the following attributes with the <video>
element:
src
crossorigin
poster
preload
autoplay
mediagroup
loop
muted
controls
width
height
Also see the <track> element for providing subtitles or other text tracks.