This tag has an interesting feature. It can be inserted in a page without any source file specified. Source files can be specified later by JavaScripts. Once a source file assigned to the parameter src of the tag bgsound it will be immediately played by the browser. This option can be used to insert sounds generated by some events. This file gives an example of such usage.
Another way of inserting music to your web page offers tag <embed>. Parameter src of this tag works similar to the tag bgsound specifying the music file to play. Unlike , tag bgsound this file doesn't start to play automatically (by default). This tag displays a music console that allows users to stop/start the music and change its volume. Additional parameters of the tag embed are:
| Code | Result |
|---|---|
This is some usual text. <span>And this is some text inside a <kbd>span</kbd> tag </span>. This is continuation of the usual text. |
This is some usual text. And this is some text inside a span tag. This is continuation of the usual text. |
Tag div is a block-level container. That is, everything it contains will be separated from other text by new lines:
| Code | Result |
|---|---|
|
This is some usual text. And this is some text inside a div tag.
This is continuation of the usual text.
|
I realize that these tags may look a little strange and confusing, but you'll understand their usefulness better when we learn Cascading Style Sheets.