To add a video in an HTML page, use the <video> element. It specifies a standard way to embed a video in HTML. Just keep in mind to add height and width to the video. Use the source element to add the source of the video, with the src attribute and the type of video with the type attribute.
The HTML <video> tag also supports the following additional attributes −
Attribute | Value | Description |
height | pixels | Specifies the height. |
src | URL | Specifies the address of the source file. |
type | MIME_type | Specifies the MIME type. |
width | pixels | Specifies the width. |