Home  >  Article  >  Web Front-end  >  How to use html video tag

How to use html video tag

青灯夜游
青灯夜游Original
2019-05-27 15:52:145008browse

The

video tag is a new tag in HTML 5, used to define videos, such as movie clips or other video streams. Currently, the video element supports three video formats: MP4, WebM, and Ogg. You can place text content between the start tag and the end tag of the video, so that older browsers can display a message that the tag is not supported.

How to use html video tag

#html How to use the video tag?

Function: Define video, such as movie clips or other video streams.

Note: You can place text content between the tags, so that browsers that do not support the

Note: The

html video tag example

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>
<video width="320" height="240" controls>
  <source src="https://img.php.cn/ueditor/php/upload/video/20190327/1553657855333112.mp4"  type="video/mp4">
  <source src="https://img.php.cn/ueditor/php/upload/video/20190327/1553657855333112.ogg"  type="video/ogg">
  您的浏览器不支持 HTML5 video 标签。
</video>
</body>
</html>

Rendering:

How to use html video tag

The above is the detailed content of How to use html video tag. 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
Previous article:How to use html span tagNext article:How to use html span tag