Tuesday, 10 October 2017

How to add video in html.

In this blog we will see how to add video in html, you can do so by following code.

Step 1: Go to notepad and type the following codes given below.




 <!DOCTYPE html>
 <html>
 <body> 

 <video width="320" height="240" controls> 

     <source src="video url" type="video/mp4">
     <source src="video url" type="video/ogg">

 </video>

 </body>
 </html>


Step 2: Save the file in .html extension and run.

Share:

0 comments:

Post a Comment