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