![]() |
The HTML5 <audio> tag is an easy way to add audio content to web pages. However, it comes with a download button that allows users to save the audio file. Sometimes, for various reasons, you might want to prevent users from downloading the audio file. To do so, you can disable the download option from the HTML5 audio tag by setting the “download” attribute to “false”. Instead, you can use standard playback controls with the “controls” attribute that will allow users to play the audio content, but not download it directly. Syntax :<audio controls controlsList="nodownload"> Using controlList to nodownload:To remove the download option from an HTML5 audio tag, employ the Example: Illustration of removing the download option from the audio tag in HTML5. HTML
Output: |
Reffered: https://www.geeksforgeeks.org
Geeks Premier League |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |