Home > Article > Web Front-end > What does the source tag do?
What is the function of the source tag?
html source tag syntax
Function: for media elements (such as 39000f942b2545a5315c57fa3276f220 and < ;audio>) defines media resources.
Description: The e02da388656c3265154666b7c71a8ddc tag allows you to specify alternative video/audio files for the browser to select based on its media type or codec support.
Note: The e02da388656c3265154666b7c71a8ddc tag is a new tag in HTML 5.
html source tag example
<!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>
The above is the detailed content of What does the source tag do?. For more information, please follow other related articles on the PHP Chinese website!