HTML Music Codes
Using music along with text display can have a very cool effect on the viewer. The music chosen should be in sync with what you want to put up in your site. If you wish to input music into your HTML body, you need to use the embed tag. Here is how to use the code:
The src attribute here defines the location of the media file. When you run the page on your browser, what you see is a media player in front of you. Now you can specify the height and width of the media player. Here is how this looks in coding:
<embed src=".mid" width="200" height="200" />
You can set some interesting features to your media player such as:
Volume – This attribute sets the volume for the media file and you can specify an numbers between 0 and 100.
Loop – This attribute sets the file to play repeatedly or just play once. Autostart – The media file will play automatically.
Here’s how all this is put together into the HTML body:
<embed src="greatlyrics.mid" autostart="false" loop="false" volume="60" />
