HTML Classes page 4

Music

Welcome back. Now we are ready to talk about music. Music is very simple. It goes by two tags
<<>embed> or <<>bgsound>. I suggest <<>embed> becuase it is much steadier.

Also the extensions. There are many extensions. .au and .wav are both extensions with a maximum length of 30 sec. A .ram, .ra, or .rpm is another extension of real audio. But those extensions are very unsteady. You are much better getting a .mid extension when it comes to full length songs. A .mid extension is fake yet very calm. It comes from MIDI meaning it is played by a keyboard or an electronic instrument. Lets get on to some codes already.
Note: I am going to use the <<>embed> tag. If you perfer to use the bgsound tag, simply replace embed with bgsound.



If you would like it not to start off automatically, you would put in this:

<<>embed src="http://URL-OF-MUSIC-FILE">

You will get this:

If you would like to start off automatically, this would be your code:

<<>embed src="http://URL-OF-MUSIC-FILE" autostart="TRUE">

To loop music, meaning to make it play over and over, this would be the script:

<<>embed src="http://URL-OF-MUSIC-FILE" autostart="TRUE" loop="TRUE">

To play two songs back to back you would use this code:

<<>embed src="http://URL-of-1st-sound" autostart=true> <<>meta http-equiv="refresh" content="#; URL=URLof2nd"> <<>link href="http://URL-of-2nd-sound" rel=next>
Note: This scipt MUST go between your <<>head> <<>/head> tags. And this goes in web pages only. NOT e-mail. :-(





Links

Links are words or phrases that take you to another location on the web. What you saw with the music speaker above is considered a link. Here is a basic link:

<<>a href="http://URL-of-LOCATION">Click here to go to Yahoo!
<<>/a>


To link music:

<<>a href="http://URL-of-MUSIC"> Music
<<>/a>

Using an image as a link:

<<>a href="http://URL-of-LOCATION"><<>img src="http://URL-OF-IMAGE"><<>/a> That's all for now. Lets go to page 5.

Hosted by www.Geocities.ws

1