Write the HTML to play a video on a web page The video sourc

Write the HTML to play a video on a web page. The video source files are myvideo.mp4, myvideo.ogg, and myvideo.webm. The dimensions of the video are 600 pixels wide by 400 pixels high.

Solution

<!DOCTYPE html>
<html>
<body>

<video width=\"600\" height=\"400\" controls>
<source src=\"movie.mp4\" type=\"video/mp4\">
<source src=\"movie.ogg\" type=\"video/ogg\">
<source src=\"movie.webm\" type=\"video/webm\">
</video>

</body>
</html>

<!--
mp4, ogg and webm respectively in source tag
video is the tag that shows the video
width and hight are attributes to fix size in pixels
-->

 Write the HTML to play a video on a web page. The video source files are myvideo.mp4, myvideo.ogg, and myvideo.webm. The dimensions of the video are 600 pixels

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site