Home>Article>Web Front-end> How to insert video and audio in html

How to insert video and audio in html

王林
王林 forward
2020-11-03 16:40:42 4334browse

How to insert video and audio in html

Ideal solution for inserting videos:

HTML5 +  + 
      

(Video tutorial recommendation:html video tutorial)

The code is as follows:

     

The ideal solution for inserting audio:

The example below uses two different audio formats. The Html5 b97864c2e0ef2353a16c4d64c7734e92 element will attempt to play audio in mp3 or ogg. If that fails, the code will fall back to trying the d8e2720730be5ddc9c2a3782839e8eb6 element.

     

Related recommendations:html tutorial

The above is the detailed content of How to insert video and audio in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete