Code Snippet
Code snippets are always useful not only for people that are learning the software but also for programmers while coding. I will be adding code snippets whenever I find time. To begin with let me add a code snippet for adding an audio to a web page using Html5.
Searching for a code snippet to insert audio to your web page using Html5? Here it is. Copy the code and modify it according to your requirements.
<audio controls="controls">
<source src="yourfile.ogg" type="audio/ogg" />
<source src="yourfile.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
To get the explanation of the above code, click here.
Insert audio to your web page using Html5
<audio controls="controls">
<source src="yourfile.ogg" type="audio/ogg" />
<source src="yourfile.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
To get the explanation of the above code, click here.
Comments
Post a Comment