Welcome to W3Courses
 Like Us on Facebook


Adding Background Sound or Music in Html Page

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">




How to Fix the Background Image on a Webpage using Html

The following parameters when added to the body tag will fix the background image of the html document. That means, when you scroll down the page, the background will remain in its place and will not change or scroll.

<body background="images/background.jpg" bgproperties=fixed>