The Essential Guide to HTML5

(Greg DeLong) #1

BOUNCING BALL


better than fewer, larger ones when youre developing applications. By the way, when doing your own
programming, dont forget to put comments in the code as described in Chapter 2. And add blank lines to
make the code more readable. Table 3-2 shows the code for the basic bouncing ball application and
explains what each line does.

Table 3-2. The Bouncing Ball Application

Code Explanation


Start html
Start head
Bouncing Ball<br /> with inputs
Complete title element

Close style element