You can use the "
The operating environment of this tutorial: Windows7 system, HTML5 version, Dell G3 computer.
HTML5 provides playback Standard for audio files.
<!DOCTYPE HTML> <html> <body> <audio src="horse.ogg" controls="controls"> 您的浏览器不支持音频元素。 </audio> </body> </html>
Description:
The src attribute specifies the URL of the audio to be played.
Syntax:
<audio src="URL">
Audio formats and browser support:
Currently, the
[Recommended tutorial: "html video tutorial 》】
The above is the detailed content of How to use html to implement music playback. For more information, please follow other related articles on the PHP Chinese website!