Horje
How to create Your own HTML Video Play using HTML <video> Element

To show a video in HTML, use the <video> element:


Example of Your own HTML Video Play using HTML <video> Element

Follow the Example
index.html
Example: HTML
 <video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video> 

Output should be:

Example of Your own HTML Video Play using HTML <video> Element

Full Example of Your own HTML Video Play using HTML <video> Element

Follow the Example
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls>
  <source src="https://www.w3schools.com/html/movie.mp4" type="video/mp4">
  <source src="https://www.w3schools.com/html/movie.mp4" type="video/ogg">
  Your browser does not support the video tag.
</video>

</body>
</html>

Output should be:

Full Example of Your own HTML Video Play using HTML <video> Element
Reffered: https://www.w3schools.com/html/html5_video.asp





Related Articles
What is HTML Video HTML Video
How to create Your own HTML Video Play using HTML <video> Element HTML Video
How it Works HTML Video Player HTML Video
How to create HTML <video> player Autoplay HTML Video
Which Browsers are Supported HTML Video Player HTML Video
What are The HTML Video Formats HTML Video
What are the HTML Video - Media Types HTML Video

Single Articles
Example of Your own HTML Video Play using HTML <video> ElementHTML Video
Full Example of Your own HTML Video Play using HTML <video> ElementHTML Video

Read Full:
HTML Video
Category:
Web Tutorial
Sub Category:
HTML Video
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
41



Share on: