Single icon sound player in html using font awesome
问题 I want a single icon sound player which when a user click plays a sound file... The only requirement is that it should be pure HTML CSS only... No JavaScript please <a href="test.mp3"><i class="fa fa-sound"></a> 回答1: It is possible but only using javascript. you can do it using following code: <audio id="player" src="Kalimba.mp3"></audio> <div> <a onclick="document.getElementById('player').play()"><i class='fa fa-volume-up fa-2x'></i></a> </div> Good Luck! Edit: The href colour will make it