HTML Video Tag
HTML 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:
- mp4
- webM
- ogg
Let's see the table that defines which web browser supports video file format.
Browser | mp4 | webM | ogg |
---|---|---|---|
Internet Explorer | yes | no | no |
Google Chrome | yes | yes | yes |
Mozilla Firefox | yes | yes | yes |
Opera | no | yes | yes |
Apple Safari | yes | no | no |
Android also supports mp4 format.
HTML Video Tag Example
Let's see the code to play mp4 file using HTML video tag.
Let's see the example to play ogg file using HTML video tag.
0 Comments