Detailed explanation of HTML5 standards for video display

Y2J
Release: 2017-05-19 13:31:31
Original
2276 people have browsed it

HTML5 Video

Many sites use videos. HTML5 provides a standard for displaying videos.

Videos on Web Sites

Until now, there was no standard for displaying videos on web pages.

Today, most videos are displayed through plug-ins (such as Flash). However, not all browsers have the same plugins.

HTML5 specifies a standard way to include video through the video element.

Detailed explanation of HTML5 standards for video displayDetailed explanation of HTML5 standards for video displayDetailed explanation of HTML5 standards for video displayDetailed explanation of HTML5 standards for video displayDetailed explanation of HTML5 standards for video display

Video on the Web site

Until now, it still does not exist A standard designed to display video on web pages.

Today, most videos are displayed through plug-ins (such as Flash). However, not all browsers have the same plugins.

HTML5 specifies a standard way to include video through the video element.

HTML5 (Video) - How it works

To display a video in HTML5, all you need is:

Example

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">您的浏览器不支持Video标签。</video>
Copy after login

At the same time, the

The above is the detailed content of Detailed explanation of HTML5 standards for video display. 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