" statement; 2. Use the "" statement; 3. Use "​ " statement."/> " statement; 2. Use the "" statement; 3. Use "​ " statement.">

Home  >  Article  >  Web Front-end  >  How to add music to html web page

How to add music to html web page

青灯夜游
青灯夜游Original
2021-06-21 16:16:189190browse

Method: 1. Use the "b97864c2e0ef2353a16c4d64c7734e925e5d99dd043c87015043152c40f67fb681d2bc32cafa2076a27f10cdd878d0ab" statement; 2. Use "57eb1ee33600d106ad30d44321708a7c 4dd31068bf220ff9da7a2b5fbd47a26a" statement; 3. Use the "3abf47f326a1553ab67e6b666d2b3b88" statement.

How to add music to html web page

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

Add music to HTML web page

Method 1:

	<audio autoplay="autoplay" controls="controls"loop="loop" preload="auto"
            	src="http://demo.mimvp.com/html5/take_you_fly.mp3">
      		你的浏览器版本太低,不支持audio标签
	</audio>

This method will display the playback device.

Method 2:

<embed src="music/We Don&#39;t Talk Anymore.mp3" autostart="true" loop="true" hidden="true"></embed>

This method mainly supports many players. Solved the browser compatibility issue to a certain extent.

Method three:

<bgsound src="音乐保存的绝对路径" autostart=true loop=infinite>

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to add music to html web page. 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