The Essential Guide to HTML5

(Greg DeLong) #1

HANGMAN


setupgame function if you want the player to start with a blank page and not with the representation of the
wooden beams of the gallows.

The complete implementation of Hangman is shown in Table 9-2.

Table 9-2. The Complete Implementation of Hangman

Code Explanation


Opening tag
Opening tag
Hangman Completes the title element
Closes the style element
Element calling for inclusion of external file,
with directive to load the file at same time as
the rest of this document