Video tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The video tag will define a video, in other words it will embed a video in the browser.
Currently, there are 3 types of video files supported: MP4, WebM, and Ogg.
Supported browsers:
- MP4: Chrome, Firefox, Opera, Safari, IE.
- WebM: Chrome, Firefox, Opera.
- Ogg: Chrome, Firefox, Opera.
Using
For example, use the video tag to insert a video into the page.
Prepare the video.mp4 file at the same level as the HTML file.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <h1>Học html miễn phí tại web888.vn</h1> <video src="video.mp4"> </video> </body> </html>