首頁  >  文章  >  web前端  >  source標籤作用是什麼

source標籤作用是什麼

云罗郡主
云罗郡主原創
2019-02-18 10:34:115959瀏覽

source標籤作用是什麼?

html source標籤語法

作用:為媒介元素(例如39000f942b2545a5315c57fa3276f220 和< ;audio>)定義媒介資源。

說明:e02da388656c3265154666b7c71a8ddc 標籤可讓您規定可替換的視訊/音訊檔案供瀏覽器根據它對媒體類型或編解碼器的支援進行選擇。

註解:e02da388656c3265154666b7c71a8ddc 標籤是 HTML 5 中的新標籤。

html source標籤 範例

<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="http://www.php.cn/i/horse.ogg" type="audio/ogg">
<source src="http://www.php.cn/i/horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>


以上是source標籤作用是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn