<embed src="">
Browser |
|
---|---|
Type |
The example of embedding the sound using the EMBED element.
<embed src="example.wav" autostart="false" loop="3" hidden="false" volume="50" width="180" height="40">
Attribute | Value | Explanation |
---|---|---|
src=" " | URL | the URL of the object data |
autostart=" " | true | sets the auto start true : the sound starts automatically false : the sound doesn't start automatically |
false | ||
loop=" " | true | sets the repeat true : repeats infinitely false : only once number : the number of repeats |
false | ||
number | ||
hidden=" " | true | sets the hidden true : the control bar is not displayed false : the control bar is displayed |
false | ||
volume=" " | 0 - 100 | sets the volume (a number from 0 to 100) |
width=" " | pixels or % | the width of the control bar |
height=" " | pixels or % | the height of the control bar |
Extension element. (Non standard element)
Example
<p>
autostart : the sound starts automatically
<br>
loop : repeats infinitely
<br>
hidden : the control bar is not displayed
</p>
<p><embed src="example1.wav" autostart="true" loop="true" hidden="true" width="0" height="0"></p>
<noembed>Alternate content</noembed>
- Output
-
Example page
The music starts automatically when the page is opened. (Please note the sound volume)
<p>
autostart : the sound doesn't start automatically
<br>
loop : only once
<br>
hidden : the control bar is displayed
</p>
<p><embed src="example2.wav" autostart="false" loop="false" hidden="false" width="200" height="40"></p>
<noembed>Alternate content</noembed>
- Output
-
Example page
(Please note the sound volume)