CSS styles
Generating markup for alphabet buttons
Using an array for a sequence of drawings
Using a character string for the secret word
Create an external script file for the word list
Setting up and removing event handling
Introduction
The goal for this chapter is to continue demonstrating programming techniques and the features of HTML5, Cascading Style Sheets (CSS), and JavaScript, combining dynamic creation of HTML markup along with drawing graphics and text on the canvas. The example for this chapter is another familiar game—the paper-and-pencil game of Hangman.
Just in case ...