This article mainly talks about some chapters of HTML5Video, which is more suitable for novices to learn some things about HTML5. Let’s try the structure of this element.
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.
Browser support
Internet Explorer 9, Firefox, Opera, Chrome, and Safari support the element.
Note: Internet Explorer 8 or earlier IE versions do not support the element .
HTML5 (Video) - How it works
To display a video in HTML5, all you need is:
<!DOCTYPE html> <html> <head> <title>PHP中文网</title> </head> <body> <video width="320" height="240" controls> <source src="/statics/demosource/movie.mp4" type="video/mp4"> <source src="/statics/demosource/movie.ogg" type="video/ogg">
Your browser does not support the HTML5 video tag.