Site icon DataFlair

HTML Audio and Video Tags

Full Stack Web Development Courses with Real-time projects Start Now!!

Program 1

<html>
    <head>
        <title>Audio Video Demo</title>
    </head>
   <body>
    <center>
      
        <audio controls>  
            <source src="I://music//rendered-teasure-music-.mp4" type="audio/mpeg">  
          </audio>  

          <br><br>
          <video controls>  
            <source src="I://videos-for-opencv//dog.mp4" type="video/ogg">  
         </video>  
    
    </center>
   </body>
</html>

 

Exit mobile version