logo

India's First Software Developer Community

Video in Webpage

There are two ways to add video in your webpage

1) by video tag which is support only html5

2) embedding youtube video in your webpage


<!DOCTYPE html>
<html>
<head>
<title>W3codeindia | Video</title>
</head>
<body>
<h2> Video By Video tag which only support in html5</h2>
<video width="300" height="200" controls>
<source src="video.mp4" type="video/mp4">
<source src="video.ogg" type="video/ogg">
Browser not support video tag
</video>
<hr>
<h2> video from Youtube </h2>
<iframe width="560" height="315" src="https://www.youtube.com/embed/IiVgDBBAEY4" frameborder="0" allowfullscreen></iframe>
</body>
</html>




Subscribe Us :

Chapters :-


Advertisement