Background sound or music can be added in a html programming using the following code
<bgsound src="path/filename.wav">
Looping for a number of times.
Replace n with a number
<bgsound src="path_to_file/filename.wav" loop="n">
Looping infinite times
<bgsound src="path_to_file/filename.wav" loop="infinite">