Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of HTML 5
For more information, please see full course syllabus of HTML 5
HTML 5 Audio
Lecture Description
In this lesson, our instructor Jim Hague goes through an introduction to audio. He starts by discussing audio formats and the four main formats. He then explains the audio elements/ attributes, such as: loop, controls, autoplay and src.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
1 answer
Sat Mar 28, 2015 11:35 PM
Post by David Llewellyn on March 9, 2015
The links to the src in w3schools.com doesn't seem to work any more, (as with the images from the same site) but this time i was unable to find the new URL.
I transferred an .mp3 file to the /Sound sub-file of the file where i am keeping my working copies of your original code together with a .ogg conversion.
I altered your original code
<p><audio controls="controls"> <source src="http://www.w3schools.com/html5/song.ogg" type="audio/ogg" />
<source src="song.mp3" type="http://www.w3schools.com/html5/audio/mp3" /> </audio> </p>
to
<p><audio controls="controls"> <source src="/Sound/The_Beatles-Yesterday_Lyrics.ogg" type="audio/ogg" />
<source src="/Sound/The_Beatles-Yesterday_Lyrics.mp3" type="audio/mp3"> </audio> </p>
Still no output - Chrome does nothing and IE11 displays a black box with a play button and "Invalid Source".
Any suggestions?
1 answer
Wed Sep 5, 2012 5:11 PM
Post by jeanette williams on August 16, 2012
ok this is a bit confusing. what does the format actually look like when done.
here is what I use to use <embed src=http//iacv.net/images/song.wma width= height= autostart="true">
is this an old way of doing things? and what should it look like today.