How to play video in html5

青灯夜游
Release: 2021-10-29 18:46:28
Original
11213 people have browsed it

html5 How to play video: 1. Use the video tag, the syntax ""; 2. Use the embed tag, the syntax " ".

How to play video in html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

There are many ways to play videos in HTML, of which html5 has two methods:

Tag Description
Tags define sounds, such as music or other audio streams.
tag defines embedded content, such as plug-ins.

##Use the

<!DOCTYPE HTML>
<html>
<body>

<video src="/i/movie.ogg" controls="controls">
your browser does not support the video tag
</video>

</body>
</html>
Copy after login

Rendering:


How to play video in html5##Use

tag Define embedded content, such as plug-ins.

<!DOCTYPE HTML>
<html>
<body>

<embed src="/i/movie.ogg" />

</body>
</html>
Copy after login

Recommended tutorial: "How to play video in html5html video tutorial

"

The above is the detailed content of How to play video in html5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template