Playing Videos in HTML Before HTML5, a video could only be played in a browser with a plug-in (like flash). The HTML5 element specifies a standard way to embed a video in a web page. The HTML Element To show a video in HTML, use the element: Example Your browser does not support the video tag. How it Works The controls attribute adds video controls, like play, pause, and volume. It is a good idea to always include width and height attributes. If height and width are not set, the page might flicker while the video loads. The 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 and tags will only be displayed in browsers that do not support the element. HTML Autoplay To start a video automatically use the autoplay attribute: Example Your browser does not support the video tag. CODE: Your browser does not support HTML5 video. Video courtesy of Big Buck Bunny.
Video courtesy of Big Buck Bunny.