What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Audio is not playing in html


New member
Hello Everyone

Just started learning HTML and I am already stuck with Audio, although I followed every step but I cant have it right.

<!DOCTYPE html>
<title>Home Page</title>
<p>I play music</p>
<audio controls>
<source src="file_example_MP3_700KB.mp3" type="mpeg">

I put the MP3 sample in the sane folder as the web page.

Could someone tell me what do I do keep doing wrong?


  • Audio HTML.png
    Audio HTML.png
    72.9 KB · Views: 1
  • Home Page.pdf
    44.3 KB · Views: 1
I saw your code,
You can try this.. it will work..

Add '..' to goto previous directory if you have kept it in some directory and also in your code use type="audio/mpeg"

<audio controls>
<source src="../songs/Remember-The-Name.mp3" type="audio/mpeg">

Hope this helps,
If you need still face the issue. Do revert back.
J Wick