DEV Community

Hussein A.
Hussein A.

Posted on

Optimize web content with html video tag

The <video> tag allows you to embed videos directly into your web pages, enhancing user experience and interactivity. The feature adds playback controls such as play, pause, and volume. Have you used the <video> tag with different source formats in your web projects?

for Example

<!DOCTYPE html>
<html>
<title></title>
<body>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>
<body>
</html>
Enter fullscreen mode Exit fullscreen mode

https://github.com/hussein-009/

Top comments (0)

The discussion has been locked. New comments can't be added.