нσω тσ α∂∂ α вα¢кgяσυη∂ ѕσυη∂ тσ уσυя ωєв ραgє
The WAY to add a background sound to your web page is by using the <embed> tag along with its src, autostart, autoplay and hidden attributes. The <embed> tag is a non-standard tag but it is widely supported by most browsers, what this means is that your <embed> tag will not validate when you check your web page to see if it�s valid. The <embed> tag allows you to embed music, videos and other kinds of multimedia in your web page. The <embed> tag also requires an end tag.
The src attribute, which is a required attribute that provides an absolute or relative link to the sound clip that will be played as the background sound on your web page.
We will also need the autostart and autoplay attributes each with the value of true. These two attributes will make your sound clip play automatically. Both attributes are exactly the same just used by different browsers.
We will also need the hidden attribute with the value of true, which will hide the sound clips control panel.
Now let me show you how to code in the <embed> tag and its attributes.
<html>
<head>
<title>Welcome To HTML & XHTML</title>
</head>
<body>
<p>
<embed src="music_sample.mp3" autostart="true" autoplay="true" hidden="true"> </embed>
</p>
</body>
</html>
No comments:
Post a Comment