C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML Video TagHTML 5 supports <video> tag also. The HTML video tag is used for streaming video files such as a movie clip, song clip on the web page. Currently, there are three video formats supported for HTML video tag:
Let's see the table that defines which web browser supports video file format.
Android also supports mp4 format.HTML Video Tag ExampleLet's see the code to play mp4 file using HTML video tag. <video controls> <source src="movie.mp4" type="video/mp4"> Your browser does not support the html video tag. </video> Let's see the example to play ogg file using HTML video tag. <video controls> <source src="movie.ogg" type="video/ogg"> Your browser does not support the html video tag. </video> Supporting Browsers
Attributes of HTML Video TagLet's see the list of HTML 5 video tag attributes.
HTML Video Tag Attribute ExampleLet's see the example of video tag in HTML where are using height, width, autoplay, controls and loop attributes. <video width="320" height="240" controls autoplay loop> <source src="movie.mp4" type="video/mp4"> Your browser does not support the html video tag. </video> MIME Types for HTML Video formatThe available MIME type HTML video tag is given below.
Next TopicHTML svg
|