html audio tag


  Translation results:

UK[ˈɔ:diəʊ] US[ˈɔ:dioʊ]

adj. Audio; hearing, sound

n. Sound; sound circuit; audible sound; Sound signal

html audio tagsyntax

What is the role of the audio tag?

Function:<audio> tag defines sound, such as music and video or other audio resources. Using the audio tag you can listen to music and watch videos without using Flash plug-in, nor All browsers support this tag.

Note: You can place text content between the start tag and the end tag, so that old browsers can display information that the tag is not supported.

Note: The <audio> tag is a new tag in HTML 5.

html audio tagexample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<audio src="http://www.w3school.com.cn/i/horse.ogg" controls="controls">
    Your browser does not support the audio element.
</audio>
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A