Home > Article > Web Front-end > How to use html video method
html video is used to define video. How to use it: first build the basic web page structure; then build the video tag and use width to set the width; then use the source tag to specify the video address and video format; finally save and run. Can.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
First understand the video tag:
1) The
2) Currently, the
Now let’s get to the point
Let’s create a new script file index.php first;
Open index.php with sublime and build it first The basic web page structure is as shown in the figure.
Continue to build the video tag, use width to set the width, and remember to add controls to have a pause/start switch.
The source tag must be nested inside the video tag to specify the video address and video format
ctrl s to save, now It’s basically successful
Check the video and you’re done
[Recommended learning: css video tutorial】
The above is the detailed content of How to use html video method. For more information, please follow other related articles on the PHP Chinese website!