DEV Community

Hussein A.
Hussein A.

Posted on

1 1 1 1

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay