HTML Elements and Attributes for Audio Files

HTML Elements and Attributes for Audio Files
Below is a list of the most commonly used*** html element tags that control an audio file on the webpage.

Note: Some attributes listed below have been depreciated in favor of Cascading Style Sheets.

Elements and Attributes for Audio Files
ElementOpening TagAttributesClosing TagDescription
bgsound<bgsound>src="location"
loop="#"
NoneEmbeds audio file on webpage (Internet Explorer)

src - location of file
loop - number of times file will play
embed<embed>src="location"
width="x"
height="x"
hidden="?"
loop="#"
NoneEmbeds audio file on webpage

src - location of file
width - width of display panel in pixels
height - height of display panel in pixels
hidden - set to true to make panel invisible, the default is false
loop - number of times file will play
***A complete list of html element tags can be found at the World Wide Web Consortium (W3C) website.
https://www.w3.org/TR/REC-html40/index/elements.html
**Color can be set using color names (red, black, etc) or RGB color codes or hexidecimal color codes.






This site needs an editor - click to learn more!



RSS
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map





Content copyright © 2023 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.