Home  >  Article  >  Web Front-end  >  The mp3 format is not an audio format supported by html5

The mp3 format is not an audio format supported by html5

青灯夜游
青灯夜游Original
2022-08-19 17:08:312719browse

mp3 format is an audio format supported by html5. HTML5 supports three audio formats: 1. MP3 format, which is designed to greatly reduce the amount of audio data; 2. Ogg format, which is a completely free, open and patent-free audio compression format; 3. Wav format is a sound file format developed by Microsoft.

The mp3 format is not an audio format supported by html5

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

mp3 format is an audio format supported by html5.

HTML5 provides a standard for playing audio files. You can use the <audio></audio> tag to define sounds, such as music or other audio streams.

<!DOCTYPE HTML>
<html>
<body>

<audio src="/i/horse.ogg" controls="controls">
您的浏览器不支持 audio 元素。
</audio>

</body>
</html>

The mp3 format is not an audio format supported by html5

Note: You can place text content between the start tag and the end tag, so that older browsers can display a message that the tag is not supported.

##

Currently, the

The above is the detailed content of The mp3 format is not an audio format supported by html5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is url in node.jsNext article:What is url in node.js