O'Reilly logo

HTML5 Web Application Development By Example Beginner's guide by J.M. Gustafson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required