try this html5 code.....
<html>
<body>
<audio controls autoplay>
<source src="zui you ji.mp3" type="audio/mpeg">
</audio>
</body>
</html>
سؤال
This is a normal music player's HTML code:
<html>
<body>
<audio controls>
<source src="zui you ji.mp3" type="audio/mpeg">
</audio>
</body>
</html>
How can I make it play songs automatically?
المحلول
try this html5 code.....
<html>
<body>
<audio controls autoplay>
<source src="zui you ji.mp3" type="audio/mpeg">
</audio>
</body>
</html>
نصائح أخرى
You can add the autoplay
attribute to your HTML 5 audio tag.
<html>
<body>
<audio autoplay="autoplay" controls>
<source src="zui you ji.mp3" type="audio/mpeg">
</audio>
</body>
</html>
You don't need to put autoplay="autoplay"
just autoplay
as it is