Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000071

Creating a link to play a sound file in HTML.

Issue:

Creating a link to play a sound file in HTML.

Solution:

Inserting the sound file in a A HREF statement will allow the browser to open and play the midi file if the viewer of your web page has properly configured the browser.

#1

<A HREF="http://www.computerhope.com/clouds.mid">Click here to play sound</a>

#2

<embed src="http://www.computerhope.com/clouds.mid" align="baseline" border="0" width="145" height="60" autostart="false" loop="true">

Example:

Using the first section of HTML code in the above solution will give you the below link.

Click here to play sound

Using the second section of HTML code will give you the below.

 

 

Index

Category:
HTML Q&A

Companies:
None

Related Pages:
HTML Help

 

Resolved

Were you able to locate the answer to your questions?

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope