Il tag HTML <dialog>



Descrizione

Il tag HTML <source> serve per definire risorse multimediali per elementi <audio> e <video>. Il browser può effettuare decisioni in base al tipo di media e dal codec.

<!Doctype html>
<html>
<head>
<title>HTML source Tag</title>
</head>
<body>
<audio controls>
<source src = "yourfile.mp3">
<p>The browser doesnot support the file</p>
</audio>
</body>
</html>

Produrrà il seguente risultato:

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

Il tag HTML <source> supporta anche i seguenti attributi aggiuntivi:

Attributo Valore Descrizione
media HTML-5 media_query definisce il tipo di file media
src HTML-5 URL URL del file media
type HTML-5 media_type media type della risorsa media

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
Yes (4.0)Yes (3.5)Yes (9)Yes (10.5)Yes (4.0)No
html_tags_reference.htm
Advertisements