Using the video Element
The video element embeds video content into a web page.
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<video width="360" height="240" src="your.webm" autoplay controls
preload="none" muted> Video cannot be displayed
</video>
</body>
</html>
The attributes for the video Element
Attribute | Description |
---|---|
autoplay | If present, the browser starts playing the video as soon as the video is available. |
preload | whether or not to load the video in advance. |
controls | whether to display controls. |
loop | whether to repeat the video. |
poster | an image to display when the video data is being loaded. |
height | the height of the video. |
width | the width of the video. |
muted | whether to mute the video. |
src | where is the video from. |