" of html5 is used to insert audio into web pages. It only supports MP3, Wav and Ogg audio format files, for example "" ."/> " of html5 is used to insert audio into web pages. It only supports MP3, Wav and Ogg audio format files, for example "" .">
Home > Article > Web Front-end > Does html5 support all audio formats?
##The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.html5 does not support all audio formats. "
Audio in HTML 5
The<!DOCTYPE HTML> <html> <body> <audio src="/i/horse.ogg" controls="controls"> 您的浏览器不支持 audio 元素。 </audio> </body> </html>Note: It can be used between the start tag and the end tag Place text content in the space, so that old browsers can display information that does not support the tag. [Related recommendations: "
Html5 Video Tutorial"]
Audio format and browsing Browser Support
Currently, theMP3 | Wav | Ogg | |
---|---|---|---|
YES | NO | NO | |
YES | YES | YES | |
YES | YES | YES | |
YES | YES | NO | |
YES | YES | YES |
MP3 | |
---|---|
Ogg | |
Wav | |
The above is the detailed content of Does html5 support all audio formats?. For more information, please follow other related articles on the PHP Chinese website!