HTML5 piano application
Now let's create our HTML5 piano application. We will have two octaves worth of piano keys, both black and white, and we will use some styling to make it look like a real keyboard. When the user clicks on a key with the mouse, it will play the corresponding note, which is defined in an audio file.
You can find the code for this section in chapter6/example6.1
.