HTML5 Video(video)

HTML5 Video(Video)

Video on Web site

Until now, there is still no method for displaying on web pages Video standards.

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

autoplay attribute

Instance

The video element set to automatically play:

controls: If this attribute appears, controls are displayed to the user, such as a play button. The

At the same time, the

The content inserted between the tags is provided for display by browsers that do not support the video element.

The

# video format and the support of the browser

Current, & lt; video & gt; Element supports three video formats: mp4, webm, and OGG:

## Browser mp4 webm ogg

## Internet Explorer Yes no nO

## chirome yes yes yes

## Firefox yes Yes yes

# Safari yes no no no no



################################11 Opera Yes File ###### Webm = Webm file with VP8 video coding and VORBIS audio encoding ####### OGG = OGG file with TheOora video coding and VORBIS audio encoding ############## ############
Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!