Computer Science, asked by burhanuddinshakur, 1 year ago

how to add music in html form??​

Answers

Answered by ladida
1

Open your Web page in Notepad.

Let your Web page’s user know they can stop sound from playing in your Web page by clicking the Stop button in their browsers.

Enter the <embed> tag and a link to the sound file you want to use.

An example looks like this: <embed src=“pathname/filename”>, “pathname/filename” is a link to the sound file.

The simplest way to be sure you have the link right is to place the sound file in the same folder as the Web page; that way the link is simply the filename.

Click File→Save and reopen the file.

The sound should play. Test the link right away to be sure it will work.

If the sound doesn’t play, experiment to make sure you have the path right and that sound plays on your machine.

To make sure you have the link right, put the file in the same folder as your Web page and simplify the link. To make sure that sound playback works on your machine, navigate to the file in Windows Explorer and click it. It should play. If not, identify and fix the files affecting sound playback on your machine.

Create a new HTML file in the same directory, called index.html . Add<audio> and <video> elements to the page; make them display the default browser controls. Give both of them <source> elements so that browsers will find the audio format they support best and load it. These should includetype attributes.


burhanuddinshakur: thax
Similar questions