The Essential Guide to HTML5

(Greg DeLong) #1

CHAPTER 1


Code Explanation


The Maze program is a
multi-stage game. The player builds a maze by
using the mouse to build walls. The player then
can move a token through the maze. The player
can also save the maze on the local computer
using a name chosen by the player and retrieve
it later, even after closing the browser or
turning off the computer.


See previous. This paragraph contains the
hyperlink to maze.html.

Closing p tag
Closing body tag
Closing html tag
The Favorite Site code has the features of the annotated list with the addition of formatting: a green box
around each item and a picture in each item. See Table 1-2.

Table 1-2. The Favorites Sites Code

Code Explanation


Opening html tag
Opening head tag
Annotated links Complete title element: opening and closing tag and
Annotated links in between