Exp-6 Use of video on web pages using html5.

write this on the writing side

Create a webpage named video.HTML to display a video file on web page and plays automatically with controls. The dimension of video area should be 150 * 150 pixels.

Create another webpage which provide multiple source file formats for the same audio file that plays a sound automatically with controls. The dimension of video area should be 100*100 pixels. The browser should display the message with appropriate attribute when audio file is not supported by browser. The code must incorporate the list of video files formats (like webM, MP4 or ogg etc).

video.html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<video width="150" height="150" controls autoplay>
<source src="gmail.mp4" type="video/mp4">
</video>
</body>
</html>

video1.html

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<video width="100" height="100" controls autoplay>
<source src="gmail.mp4" type="video/mp4">
<source src="gmail.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>

stick this output on the blank side

Leave a Comment

Scroll to Top