In HTML5 standard web pages, we can use the audio tag to complete our call and playback of sounds. The following are the three most common basic formats for using HTML5:
<audio src="song.ogg" controls="controls">
Your browser does not support the audio tag.
</audio>
3. Try to be compatible with browser writing
<audio controls="controls">
<source src="song.ogg" type="audio/ogg">
<source src="song.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
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