Lokang 

HTML and CSS

video

To include a video in an HTML document, you can use the <video> element along with the src attribute. Here is an example:

<video src="video.mp4" controls></video>

The controls attribute includes the video player controls such as play, pause, and volume.

You can also specify additional attributes to customize the video player. For example:

<video src="video.mp4" controls preload="none" loop>
 Your browser does not support the video element.
</video>

The preload attribute controls whether or not the video should be loaded when the page loads. The possible values are none, metadata, and auto. The loop attribute causes the video to start over again when it finishes playing.

You can also use the <source> element to specify multiple video sources, in case the browser does not support the first video format:

<video controls>
 <source src="video.mp4" type="video/mp4">
 <source src="video.webm" type="video/webm">
 Your browser does not support the video element.
</video>

In this example, the browser will try to play the MP4 video first. If it is not supported, it will try to play the WebM video. If neither format is supported, the text "Your browser does not support the video element." will be displayed.