Home > Web Front-end > HTML Tutorial > Attributes and usage of element in HTML5

Attributes and usage of element in HTML5

PHPz
Release: 2023-08-26 21:37:13
forward
648 people have browsed it

Attributes and usage of <element> element in HTML5

HTML5 audio tags can have multiple attributes to control the look, feel, and various functions of the control:

##123456
Serial number Properties and Description

autoplay

If this boolean property is specified, the audio will automatically start playing when the data is loaded, without stopping to complete the load.

autobuffer

If this boolean attribute is specified , the audio will automatically start buffering even if it is not set to autoplay.

controls

If this attribute exists, it Users will be allowed to control audio playback, including volume, search, and pause/resume playback.

loop

If this Boolean attribute is specified , the audio will automatically return to the beginning after reaching the end.

preload

This attribute specifies that the audio will be The page loads when it loads and is ready to run. If autoplay is present, this attribute is ignored.

src

The URL of the audio to embed . This is optional; you can also use the

element within the video block to specify the video to embed

The above is the detailed content of Attributes and usage of element in HTML5. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
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