How to Play a WAV in HTML


A WAV is a digital sound file often used for short sound clips or sound effects. You can embed a WAV into your website's HTML code, allowing it to load and play when a visitor comes to your page. You can use this as a greeting or an important message for your visitors. To embed the sound file, you must first upload the WAV to your website host or file storage service and have the URL address for the file.

  • Highlight the following HTML code with your mouse, then right-click and select "Copy:"


  • Open your webpage's HTML code in a text or online editor.

  • Right-click within the HTML code and click "Paste" from the menu. This will paste a copy of the HTML code on your page.

  • Highlight the "WAVFILE" text in the code and type the URL address for the WAV file you want to play. Do not remove the quotation marks around the URL.

  • Save the changes to your HTML code and post it to the Internet. When you visit your page, the WAV file sound will automatically load and play.

Tips & Warnings

  • Make sure the size of the WAV file isn't too large as it may cause your page to load slowly, especially for visitors who do not have a faster Internet connection.
  • Do not over-use WAV file sounds on your website as this can annoy visitors and prevent them from returning to your site.

Related Searches


Promoted By Zergnet


You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!