There are two most commonly used methods to insert videos into HTML, one is the ancient <object></object> tag, and the other is the <video></video> tag in html5.
The compatibility of the former is not to be said, but it is not very convenient to use, while the latter is very convenient to use, but compatibility is a headache.
Although there are many problems with the compatibility of the latter, because it is very convenient to use and conforms to the future development trend of web design, we are the main method of inserting videos because of its compatibility issues, and the former serves as an auxiliary.
Examples are as follows:
Copy the code