Home >
Article > Web Front-end > Attributes and usage of
HTML5 audio tags can have multiple attributes to control the look, feel, and various functions of the control:
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. | |
autobufferIf this boolean attribute is specified , the audio will automatically start buffering even if it is not set to autoplay. | |
controlsIf this attribute exists, it Users will be allowed to control audio playback, including volume, search, and pause/resume playback. | |
loopIf this Boolean attribute is specified , the audio will automatically return to the beginning after reaching the end. | |
preloadThis 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. | |
srcThe 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