video
UK[ˈvɪdiəʊ] US[ˈvɪdioʊ]
n.Tape video; video tape; video recorder, television; (referring to method) video recording
adj. Video; television; image; using video tape [video tape]
vt. Video; making a video of...
html5<video> tag syntax
Function: The <video> tag defines a video, such as a movie clip or other video stream.
Parameters:
Attributes | Value | Description |
autoplay | autoplay | If this attribute appears, the video will be played as soon as it is ready. |
controls | controls | If this attribute appears, controls are displayed to the user, such as a play button. |
height | pixels | Set the height of the video player. |
loop | loop | If this attribute appears, playback will start again after the media file completes playback. |
preload | preload | 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. |
src | url | The URL of the video to play. |
width | pixels | Set the width of the video player. |
Note: You can place text content between the start tag and the end tag, so that older browsers can display a message that the tag is not supported.
html5<video> tag example
<!DOCTYPE HTML> <html> <body> <video src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" controls="controls"> your browser does not support the video tag </video> </body> </html>
Click the "Run instance" button to view the online instance