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

hamoudbueno

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>
<html>
<head>
<title>Home Page</title>
</head>
<body>
<h1>Music</h1>
<p>I play music</p>
<audio controls>
<source src="file_example_MP3_700KB.mp3" type="mpeg">
</audio>
</body>
</html>

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

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

Attachments

  • Audio HTML.png
    Audio HTML.png
    72.9 KB · Views: 1
  • Home Page.pdf
    44.3 KB · Views: 1
Top