- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Attributes and usage of
The HTML5 audio tag can have a number of attributes to control the look and feel and various functionalities of the control:
Sr. No. | Attribute & Description |
---|---|
1 | autoplay This boolean attribute if specified, the audio will automatically begin to play back as soon as it can do so without stopping to finish loading the data. |
2 | autobuffer This boolean attribute if specified, the audio will automatically begin buffering even if it's not set to automatically play. |
3 | controls If this attribute is present, it will allow the user to control audio playback, including volume, seeking, and pause/resume playback. |
4 | loop This boolean attribute if specified, will allow audio automatically seek back to the start after reaching at the end. |
5 | preload This attribute specifies that the audio will be loaded at page load, and ready to run. Ignored if autoplay is present. |
6 | src The URL of the audio to embed. This is optional; you may instead use the <source> element within the video block to specify the video to embed |
Advertisements