The <video> tag is used to add video, with the following video formats − MP4, WebM and Ogg
On selecting a file via the input element.
The event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is performed by the user.
Use the URL.createObjectURL() static method to create a DOMString containing a URL representing the object given in the parameter.
Finally, here is how the video is visible. Use the src attribute to add the location (URL) of the video file.