How to include the audio/video controls in HTML?

HTMLWeb DevelopmentFront End Technology

Use the controls attribute in HTML to include audio/ video controls in HTML.

Example

You can try to run the following code to implement the controls attribute −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML video Tag</title>
   </head>
   <body>
      <p>Online Compiler</p>
      <br />
      <video width = "500" height = "300" controls>
         <source src = "/html/compileonline.mp4" type = "video/mp4">
         This browser doesn't support video tag.
      </video>
   </body>
</html>
raja
Published on 14-Mar-2018 11:57:18
Advertisements