Saturday, 6 August 2022

32 - Play Audio/Video in HTML

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.

Watch Full Playlist Here

Watch Complete One Video Here


#audio tag in html #audio video in html #html audio #html audio tag #html5 audio #video tag in html


The Rise of AI Business Tools: What Entrepreneurs Need to Know

The Entrepreneur's Guide to AI Business Tools: Navigating Opportunities and Challenges in 2025 I. Executive Summary Artificial intel...