Re: Inserting correct sound code
by "Rajnish Bhaskar" <r.bhaskar(at)educ.gla.ac.uk>
|
| Date: |
Fri, 16 Apr 2004 09:51:08 +0100 |
| To: |
grandane <grandane(at)grandane.com> |
| Cc: |
hwg-languages(at)hwg.org |
| In-Reply-To: |
grandane |
| |
todo: View
Thread,
Original
|
|
> Have completed small website using xhtml and validated - Have have
> had up until now, no desire to use music but this time thought would
> try it on one page only(chicken?)...previously this page validated but
> code I have freshly inserted (as follows) does not validate - I used
> the following code:
>
> <bgsound img src="catsinthecradle.mid" loop=1 />
the <bgsound> tag is not valid HTML -- it is not in the spec. I
believe that the correct way to display any embedded media is to use
the <object> tag. I don't use this myself, but a quick web search
revealed:
http://library.thinkquest.org/17131/multimedia/sound/
http://www.sentex.net/~mmcadams/sounds/embed.html
http://www.latrobe.edu.au/webaccess/objects.html
and the spec itself:
http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.3
Hopefully this should be enough to let you experiment with this.
HTH,
Raj.
--
Rajnish Bhaskar, Technical officer
r.bhaskar(at)educ.gla.ac.uk, http://lordofthemoon.com
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
Glad that live am I,
That the sky is blue.
Glad for the country lanes,
And the fall of dew.
-- Lizette W. Reese
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.