A modern, responsive music player built with HTML, CSS, and JavaScript.
- ✅ Play, pause, next, previous controls
- ✅ Song title, artist, and duration display
- ✅ Interactive progress bar (click to seek)
- ✅ Volume control slider
- ✅ Interactive playlist
- ✅ Autoplay functionality
- ✅ Responsive design
- Open
index.htmlin your browser - Click on any song in the playlist to start playing
- Use controls to play/pause, skip tracks
- Adjust volume with the slider
- Enable autoplay for continuous playback
index.html- Main HTML structurestyle.css- Styling and responsive designscript.js- JavaScript functionalityimages/- Album artwork directory
To add your own songs, edit the songs array in script.js:
this.songs = [
{
title: "Your Song Title",
artist: "Artist Name",
src: "path/to/your/audio.mp3",
image: "path/to/album/art.jpg"
}
];- HTML5
- CSS3 (Flexbox, Grid, Gradients)
- JavaScript (ES6 Classes, Audio API)