Home > Web Front-end > H5 Tutorial > body text

Video element in HTML5

黄舟
Release: 2016-12-22 15:30:06
Original
1543 people have browsed it

Many trendy websites offer videos. HTML 5 provides a standard for displaying video.

Videos on the Web

Until now, there was still no standard that aimed at displaying videos on web pages. Today, most videos are displayed through plug-ins (such as Flash). However, not all browsers have the same plugins. HTML 5 specifies a standard way to include video through the video element.


HTML5 supported video formats

Currently, the video element supports three video formats:

Video element in HTML5

Ogg = Ogg file with Theora video encoding and Vorbis audio encoding

MPEG4 = with H.264 MPEG 4 files with video encoding and AAC audio encoding

WebM = WebM files with VP8 video encoding and Vorbis audio encoding


How does it work?

To display a video in HTML 5, all you need is:

<video src="movie.ogg" controls="controls"></video>
Copy after login

The above is the content of the video element in HTML5. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


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