This is very easy all websites use it. I will pretty much be breaking down how the YouTube video link button works.
The first thing you need to do is make a base for it like so.
- Code:
-
<video </video>
This is telling the site or giving it the command that there will be a video here. Now you have to give it a size. (width and height) or "controls".
- Code:
-
<video width="400" height="300" controls>
</video>
Now that you have the size of the video you need to add the link or the "source" of the video and the type. Like so.
- Code:
-
<video width="400" height="300" controls>
<source src="video-url.mp4" type="video/mp4">
</video>
Then Bam your done.