Home > Web Front-end > HTML Tutorial > Introduction to the use of HTML5 video video tags

Introduction to the use of HTML5 video video tags

不言
Release: 2018-05-08 15:42:08
Original
3014 people have browsed it

This article mainly introduces the use of HTML5 video video tags. It has certain reference value. Now I share it with you. Friends in need can refer to it.

HTML video is suitable for HTML 5 and is used for Define video streaming media for online viewing. Here is a brief introduction for the convenience of friends who need it

HTML

Copy code

The code is as follows:

<video width="320" height="240" src="http://www.jb51.net/movie.ogg" controls="controls">
Copy after login

Here is the comment text. If HTML 5 cannot be supported, the browser will display it Text here. If supported, the video will be displayed directly and the text will be ignored.

In HTML 4 and before, if you want to embed a video for online viewing in a web page, you generally need to use Flash video streaming, by using and tag, you can play video files in swf, flv and other formats through the browser, but the premise is that the browser must install a third-party plug-in: Adobe Flash Player. Modern smartphones and iPads generally cannot support Flash, so they cannot browse videos on the web. HTML 5 has changed this fact. Web developers only need to use the