Use of autobuffer attribute in audio tag of HTML5.
Use of autobuffer attribute in audio tag of HTML5.The autobuffer attribute has Boolean value. It is available in audio tag. Autobuffer attribute is used for buffering a file in advance. It continues until the whole file has been downloaded.
Autobuffer attribute:Attribute | Value | Description |
Autobuffer | Boolean | If it is present in audio tag file; music will start buffering automatically . |
Declaration syntax of autoplay attribute in HTML5.
<audio src="URL" autobuffer >Content</audio> |
<!DOCTYPE html > <html > <head> <title>Audio Tag Example </title> </head> <body> <p><b>Example of audio tag autobuffer attribute in HTML5.</b></p> <audio autobuffer controls> <source src="a1.mp3" type="audio/mp3" /> Browser does not support audio tag. </audio> </body> </html> |
The audio tag is only available in HTML5. It is not available in HTML4.01.