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

Attributes and usage of element in HTML5

PHPz
PHPzforward
2023-08-26 21:37:13624browse

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete