

Assigning Audio File’s Pathīy using Audio tags in HTML Document we have Declared an Audio Element inside our HTML Web page. We have to Specify our Audio File’s Path, Inside the HTML Audio Tags so Our Browser can get the Audio File, and Add that Audio File inside our HTML Web-page.

We have to Give our Audio file’s Location inside this SRC attribute. ( Important: So if your Audio file and the HTML file is Present on the same Location. Then you just have to give your Audio file’s name, followed by the File Extention here.) Step 4: Add Controls Attribute:īy Video tag and SRC Attribute, We have Provided Enough Data so Browser can Add our Audio File in our HTML Web-page. But there isn’t anything so we can Play or Activate the Audio file the Browser. For that, We have to use this Control Attribute Inside the HTML Audio Tags. Or if your HTML file and the Audio File is present at two different locations or you are Facing Errors Inside the Console Tab.įinal Step: Save and Run the HTML file on the Browserīut if your Audio file isn’t there, Then make sure that Your Audio File and Your HTML File is Present at the Same Folder. Then we have to give the full path of our Audio File.īecause Browser isn’t able to Detect our Audio File in the Parent Location. FAQs about How to Add Audio in HTML how to insert video in html using notepad That’s it For Adding Audio files from Local Storage.
