How to use html audio tag

藏色散人
Release: 2019-05-25 14:08:50
Original
4628 people have browsed it

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:

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

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template