AlfieWebDevTips Homefor new and experienced developers
[Home Home] [Web Development Web Development ] [Code Generators Code Generators ] [Resources Resources ] [Contact Us Contact ] |WebDevTips Privacy Privacy |
Print This Page

You are here : Home - Resources - FAQ - HTML Q1

FAQ - HTML Q1



Q1: How do I put background music on my webpage?

A: I won't go into the politics of webpages and background music so heres how you do it :)

<embed autostart="True" src="path/filename" hidden="True"></embed>

The above line will work but not validate at w3 if you still want sound and valid code use this

<script language="JavaScript" type="text/javascript"> 
<!-- 
document.write("<embed autostart=\"True\" src=\"path/filename\" hidden=\"True\"><\/embed>"); 
// --> 
</script>



back to faq




Google
 

[back to top of page]   

[labelled with icra -  - this link will open in a new window] [RSS Content]

[Copyright © WebDevTips]