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
ValueDescription
autoplayautoplayIf this attribute appears, the video will be played as soon as it is ready.
controlscontrolsIf this attribute appears, controls are displayed to the user, such as a play button.
heightpixelsSet the height of the video player.
looploopIf this attribute appears, playback will start again after the media file completes playback.
preloadpreload

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.

srcurlThe URL of the video to play.
widthpixelsSet 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>
Run instance »

Click the "Run instance" button to view the online instance