" tag to insert a video, the syntax format is "". The video tag element supports three video formats: MP4, WebM, and Ogg.">
In HTML, you can use the "
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
htmlInsert video
您的浏览器不支持 HTML5 video 标签。
Rendering:
#HTML5
html video tutorial"]
Value | Description | |
---|---|---|
autoplay | If this attribute is present, the video will be played as soon as it is ready . | |
controls | If this attribute appears, controls are displayed to the user, such as a play button. | |
pixels | Set the height of the video player. | |
loop | If this attribute appears, playback will start again after the media file completes playback. | |
muted | If this attribute appears, the audio output of the video is muted. | |
URL | Specifies the image that is displayed while the video is downloading, until the user clicks the play button. | |
auto | metadatanone If this attribute appears, the video will be loaded when the page loads and is ready to be played. If "autoplay" is used, this attribute is ignored. |
|
URL | The URL of the video to play. | |
pixels | Set the width of the video player. |
MIME type for audio format:
MP4 | |
---|---|
WebM | |
Ogg | |
For more programming-related knowledge, please visit: |
The above is the detailed content of How to put video in html. For more information, please follow other related articles on the PHP Chinese website!