Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1
629

disabled Boolean attribute, 36
distances, calculating, 548–549
<div> element
box-sizing property, 190–192
centering content in browser window, 190–192
clear property, 189–190
control format using, 213
described, 32–33, 178
draggable attribute, 509
<figure> element and, 219
float property, 186–189
historical usage, 206
in layout containers, 208
positioning, 178–186
role attribute, 212
<table> element and, 230
division (/) operator, 67–68, 70
<dl> element, 33, 37, 223–224
do loop, 85
<!DOCTYPE html> instruction, 8–9, 40
document object
about, 112
getElementById() method, 113
getElementsByClass() method, 113
getElementsByName() method, 113
getElementsByTagName() method, 113
querySelector() method, 113
querySelectorAll() method, 113–114
document object model (DOM)
creating jQuery wrappers, 294–295
described, 112
navigating, 112–114
preventing default operation, 116
<script> elements and, 103
this keyword, 117
working with events, 114–120
dollar sign ($), 72–73, 157, 288
DOM (document object model)
creating jQuery wrappers, 294–295
described, 112

setting breakpoints, 103–104
stepping through code, 105–107
declaration block, 139–140
declare attribute ( element), 322
default.css file, 15, 141
default.html file
Blend for Visual Studio 2012, 15
QUnit setup, 91
Visual Studio 2012, 8–9, 11
default.js file
Hello World example, 92
jQuery example, 288, 291
location of, 7
media control, 450–451
defer attribute (