Friday, March 29, 2013

Embedding Audio Files in HTML5


To embed an audio file into a web page, you can use an <object> tag.

<body>
<h2>Play Audio File</h2>
<object data="Media/Song.mp3" />
</body>


The data attribute of the <object> tag points to an MP3 audio file residing in the Media folder.

No comments:
Write comments
Recommended Posts × +