English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do you add background music using html. Can someone give me the code?

2006-07-27 03:22:00 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

There is nothing more annoying than background music when you get to a website.

If you absolutely must, use an tag. All the options you need to set will be found at http://www.w3schools.com/

2006-07-27 04:43:24 · answer #1 · answered by John J 6 · 0 0

Although the above answer will work, it is both not W3 Standards compliant, and will not work on all browsers

width="2" height="0">


The above code will work with Netscape browsers and IE, and is also standard's compliant, though it will probably not work with Opera.


If you don't care about standard's compliancy, only getting the music to everyone, use this code

width="2" height="0">

<br /> <bgsound src="yourmusicfile.mid" loop="infinite"><br />


But consider this:

A. Some people might not like the music you pick
B. Others may have their own music already playing, so are annoyed by your music
C. Some people may be using a library computer/ office computer

2006-07-27 03:34:31 · answer #2 · answered by Jake 2 · 0 0

2006-07-27 03:27:03 · answer #3 · answered by Indian Guy 2 · 0 0

fedest.com, questions and answers