Home >
Article > Web Front-end > Introduction to the use of HTML5 video video tag_html5 tutorial skills
Introduction to the use of HTML5 video video tag_html5 tutorial skills
WBOYOriginal
2016-05-16 15:48:261834browse
HTML
Copy code
The code is as follows:
In HTML 4 and before, if you want to embed a video for online viewing in a web page, you generally need to use Flash video stream. By using the
Properties
Value
Description
autoplay
autoplay
If this attribute is present, the video will be played as soon as it is ready.
controls
controls
If present, displays controls, such as a play button, to the user.
height
Pixel value
Set the height of the video player.
loop
loop
If this attribute appears, playback will start again after the media file completes playback.
preload
auto/meta/none
Specifies whether to preload the video, possible values: auto - load the entire video when the page loads meta - load only the metadata after the page loads none - do not load the video after the page loads Loading video
* src
Video address
The URL of the video to be played, it is recommended to use an absolute address.
width
Pixel value
Set the width of the video player.
How to write compatible video tags?
Since old browsers and Internet Explorer do not support the
Statement:
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