" statement; 2. Use the "" statement; 3. Use "< object data="audio file path"/>" statement."/> " statement; 2. Use the "" statement; 3. Use "< object data="audio file path"/>" statement.">
Home >Web Front-end >HTML Tutorial >How to add music in html
htmlHow to add music: 1. Use the "" statement; 2. Use "" statement; 3. Use the "" statement.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
1. Use HTML5
Example:
<!DOCTYPE HTML> <html> <body> <audio src="/i/horse.ogg" controls="controls"> Your browser does not support the audio element. </audio> </body> </html>
2. Use the
The above is the detailed content of How to add music in html. For more information, please follow other related articles on the PHP Chinese website!