0% found this document useful (0 votes)
43 views1 page

The EMBED Tag

The <EMBED> tag can be used to add music to web pages. An example HTML code is provided that uses the EMBED tag with attributes like src, width, height, autostart, autoplay, loop, and volume to play audio files on a webpage. These attributes control whether the audio plays automatically, repeats, and adjust properties like the file path, dimensions, and volume level.

Uploaded by

nivebala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

The EMBED Tag

The <EMBED> tag can be used to add music to web pages. An example HTML code is provided that uses the EMBED tag with attributes like src, width, height, autostart, autoplay, loop, and volume to play audio files on a webpage. These attributes control whether the audio plays automatically, repeats, and adjust properties like the file path, dimensions, and volume level.

Uploaded by

nivebala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

The EMBED tag

How can I add music to my web page?

music can be added to pages with the <EMBED> tag

The embed html

below is the example html code for the embed tag


<embed
src="soundfile.mid" hidden="false" border="0" width="310" height="45" autostart="true" auto
play="true" loop="true" volume="75%">

use the example html source code above to play audio on your webpage, here's a break down of the
example html source code

How embed works

how the embed attributes work:

src="soundfile.mid" the url of the file


(src="http://www.whatever.com/soundfile.mid")

hidden="false" shows the controls

hidden="true" hides the controls

width="310" height="45" the dimensions of the control measured in pixels, play around with these

autostart="true" autoplay="true" if set to true play automatically on load

autostart="false" autoplay="false" if set to false do not play

loop="true" if false play once only, if true repeat constantly

volume="75%" set the volume as a percentage

You might also like