Home  >  Article  >  Web Front-end  >  How to use html audio tag

How to use html audio tag

藏色散人
藏色散人Original
2019-05-25 14:08:504632browse

html The audio tag is used to define sounds, such as music and video or other audio resources. Using the audio tag, you can listen to music and watch videos without a Flash plug-in. Not all browsers support this tag.

How to use html audio tag

#html How to use the audio tag?

Function:b97864c2e0ef2353a16c4d64c7734e92 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 a 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

b97864c2e0ef2353a16c4d64c7734e92 tag is a new tag in HTML 5.

html audio tag example

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

The above is the detailed content of How to use html audio tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use html aside tagNext article:How to use html aside tag