-
Notifications
You must be signed in to change notification settings - Fork 0
8. Sound Machine Project
Michael Earley edited this page Apr 19, 2015
·
17 revisions
This project includes the HTML 5 audio tag. This is new to version 5 of HTML.
The tag used is <audio> </audio>
Inside the audio tag, you place a source tag. The source contains a reference to the audio file you wish to play. The source tag should include two attributes
- The src which should include the name of the audio file. If the audio file is in a subfolder, the it should be subfolder/audiofile.mp3
- The type should be included. The audio tag can include 3 types:
a. mp3 which is audio/mpeg b. ogg which is audio/ogg c. wav which is audio/wav
Example: `