Il tag HTML <bgsound>



Descrizione

Il tag HTML <bgsound> permette di far partire una canzone in background. Questo tag funziona solo su Internet Explorer.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML bgsound Tag</title>
</head>
<body>
<bgsound src="/html/yourfile.mdi"/>
<p>This does create any result on the screen but it plays sound file in the background.</p>
</body>
</html>

Produrrà il seguente risultato:

This does create any result on the screen but it plays sound file in the background.

Attributi Specifici

The HTML <bgsound> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
loop numericoLets you replay a background soundtrack a certain number of times.
src URLSpecifies the path of the sound file.

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
NoNoSiNoNoNo
html_tags_reference.htm
Advertisements