In this lesson you should be able to insert videos comfortably to your website.
<video>
element is used to show a video on a web page.
The controls
attribute adds video controls, like play, pause, and volume.
The <source>
element allows you to specify alternative video files which the browser may choose from. The browser will use the first recognized format.
The text between the <video>
and </video>
tags will only be displayed in browsers that do not support the <video>
element.
Not that we have used height and width to resize our video in our website.
Example
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<video controls=”autoplay” height=”300px” width=”50%” src=”C:UserscarolDesktopSwae Lee, Tyga, Lil Mosey – Krabby Step.mp4“></video><br>
<video controls=”autoplay” height=”300px” width=”50%” src=”C:UserscarolDesktopSwae Lee, Tyga, Lil Mosey – Krabby Step.mp4“></video><br></body>
</html>