"; 2. Use the embed tag with the syntax ""."/> "; 2. Use the embed tag with the syntax "".">

Home  >  Article  >  Web Front-end  >  How to play video in html5

How to play video in html5

青灯夜游
青灯夜游Original
2021-10-29 18:46:1111192browse

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>

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>

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!

Statement:
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