Play Videos on a Web Page
In HTML5 you can play movie clip and other video streams using the new <video> tag. The src attribute specifies the URL of the video file. The controls attribute displays video controls which include:
- Play
- Pause
- Seeking
- Volume
- Fullscreen toggle
- Captions/Subtitles (when available)
- Track (when available)
Internet Explorer 8 and earlier versions do not support the <video> tag. In order for users viewing your video through older or latest browsers you need to upload the video in at least two different formats as did in the example below. The <source> element inside the <video> element is used to run this video on all supported browsers. You specify alternative video/audio files which the browser may choose from, based on its media type or codec support. Use the <audio> tag to play audio files in HTML5.
Learn the HTML5 language in this tutorial series. These tutorials are designed for new programmers to provide them thorough knowledge of full stack web development.
#audio tag in html #audio video in html #html audio #html audio tag #html5 audio #video tag in html