Tutorial Categories
Tools and Software
Site Search


Advanced Search
Tutorial Options
Popular Tutorials
  1. Photoshop Concept Car Makeover
  2. Photoshop Man Of Fire Part I
  3. Photoshop Magic Marker Effect
  4. Photoshop Man Of Fire Part II
  5. Photoshop Car Makeover Part II
No popular tutorials found.
Popular Authors
  1. Cory Crampton
  2. Daniel Phillips
  3. tanmay goswami
  4. Rails Forum
  5. Brendan Horverson
  6. CodeCrunch Tutorial Bot
  7. PhotoshopBee .com
  8. Jamie Lewis
  9. Nick Cote
  10. Luther Avery
No popular authors found.
 »  CodeCrunch  »  HTML and CSS  »  HTML Intermediate Tutorial: Phase 1
HTML Intermediate Tutorial: Phase 1
By Daniel Phillips | Published  07/20/2006 | HTML and CSS | This tutorial viewed 857 times
HTML Intermediate Tutorial: Phase 1

Sound good? Well really you should remember how to do this but just in case you dont..

We have a sound file called sound.mid

The code to play this sound would be:

<a href="http://yoursite.com/sound.mid> Listen to sound </a>

Now for the second method - what if you want to have background music, a sound played while your users are browsing your site!

The code used for this is something we have not gone into yet, it is the <embed> tag. As you can probably tell it is used to embed files into a web page!

lets take a look at an example.

<embed src="http://yoursite.com/sound.mid">

As you have by now noticed - this code is just like a link, but it uses "embed" rather than "a href".

Remember the sound file can slow down your page, it is not reccomended that you use big mp3 files as background music, as some people will have a long load time.

This code will display a small windows media player console on your page, which includes a start.pause, and stop button.




Comments