The Essential Guide to HTML5

(Greg DeLong) #1

INDEX


opening tag, 4, 19
operator overloading, 151, 269
operators, 25
origin (registration) point, 31
ovals, drawing, 29 9


P
p element, for paragraphs, 8
padding, 8
page reloading, disabling, 27, 80
pairs array, 147
parentheses ( ), 11, 26, 270
paths, drawing
bouncing ball sample and, 70
dice game sample and, 30, 32–38
Hangman game sample and, 298
pausing, 146, 148
period (.), indicating method invocation, 11, 26
pi radians, 32, 104
picked variable, 300, 301
pickelement function
for Hangman game sample, 298, 300, 302
for quiz sample, 188, 194
picname variable, 323, 324
Picture function, 102, 103
for cannonball sample, 119
for slingshot sample, 129
pixels , 30
border thickness and, 8
image width and, 5
play method, 193, 274
playerdone function, for blackjack card game
sample, 331
playerhand array, for blackjack card game
sample and, 324
plus sign (+), 151
points array, for rock-paper-scissors game
sample, 268
Polycard function, for memory game sample,
155
Polygon function, for memory game sample, 147
polygons
drawing, 151
for memory game cards, 141, 147, 151
pop method, 110
positions, calculating for new, 78
preventDefault method, 221, 329


prices array, 185
programmer-defined objects, 101, 324
programming languages, 10
HTML. See entries at HTML
JavaScript. See JavaScript
vs. natural languages, 11
radians/degrees and, 106
projectile motion. See ballistics simulation
properties, 102, 324
pseudo-code, 28
pseudo-random processing, 24
push method, 103

Q
quality assurance, 272
quiz (sample), 179–211
building, 193–209
customizing, 183, 201, 209
second version of, 182, 190, 201–209
testing/uploading, 210
video feedback in, 179, 182, 191–193, 201,
210
quotation marks (" ")
code errors and, 19
omitted from HTML syntax, 5
string definitions and, 28, 75

R
radial gradients, 72
radians, 104
circles and, 32, 299
programming languages and, 106
radio buttons, mazes sample and, 218, 230, 246
random processing, 24
rectangles, 27
drawing, 30, 71, 75
rectangle for cannonball samples cannon,
118
ro tatin g, 103–107
ref attribute, 5
registration (origin) point, 31
regular expressions, input validation and, 79
relative URL, 18
reload/refresh button, disabling, 27, 80
resources for further reading
CSS styles, 189
Free download pdf