The
video tag is a new tag in HTML 5, used to define videos, such as movie clips or other video streams. Currently, the video element supports three video formats: MP4, WebM, and Ogg. You can place text content between the start tag and the end tag of the video, so that older browsers can display a message that the tag is not supported.
#html How to use the video tag?
Function: Define video, such as movie clips or other video streams.
Note: You can place text content between the tags, so that browsers that do not support the
Note: The
html video tag example
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <video width="320" height="240" controls> <source src="https://img.php.cn/ueditor/php/upload/video/20190327/1553657855333112.mp4" type="video/mp4"> <source src="https://img.php.cn/ueditor/php/upload/video/20190327/1553657855333112.ogg" type="video/ogg"> 您的浏览器不支持 HTML5 video 标签。 </video> </body> </html>
Rendering:
The above is the detailed content of How to use html video tag. For more information, please follow other related articles on the PHP Chinese website!