- element 448–449 ondragstart attribute 167 onhashchange function 176 oninput event handler 65 only-child 248 onmessage event 207 onoffline event 215 ononline event 215 onpageshow event 179 onpopstate event 179 opacity 314–317 browser support for in IE8 and earlier 346 in lightboxes 314 opacity property, browser support for 314 Opera element in 127 audio codec support 130 HTML validation 465 JavaScript interactive console 494 microdata, support for 180 support for downloadable fonts 399 text formatting 161 Theora support 139 WebM support 140 optional 264 OR operator 497 orientation media query 291 orientation, changing layout based on 291–292 outline, sections in 13 element 53–54 P padding-width property 484 page state, updating 175 styling based on URL target 265–267 page structure elements 7–18 parameter 508 parsing 458 definition of 444 element 100–101 pattern applying to text 108 in SVG 107–109 pattern attribute 48 perspective 328 phrasing content 32 placeholder attribute 60 placeholder text 59–61 plug-in 122 polygon element 99 polygon, drawing in SVG 99 element 100 popState event 178 popstate event 177 Portable Font Resource (PFR) 398 post-decrement operator 502 post-increment operator 502 postMessage function 204 element 22, 448 element 55 prop variable 512 Proposed Recommendation (PR) 431 pseudo-class 240–251 :first-child 242 :last-child 243 :nth-child 244–247 odd and even 245 patterns 245 :nth-last-child 246 child selectors 243 browser support for 248 dynamic 261–267 browser support for 261 IE6 problem 240 standalone 243 pseudo-element 257–261 ::first-line 258 browser support for 258 vs pseudo-class 259 pushState function 178 Q quadratic curve, drawing in 81 quadraticCurve method 81 Quirks mode 485 R radio buttons 40 Raggett, Dave 428 range control 44 Raphaël JavaScript library 118 INDEX RDFa 20 Real Time Messaging Protocol (RTMP) 150 Real Time Streaming Protocol (RTSP) 150 rectangle, drawing in 76 reflection effect 82 Regions module 303 rendering mode 18 rendering, definition of 444 Request for Comments (RFC) 428 required 264 required attribute 47 resolution media query 292 resolution, detecting 287–291 RGBA 318–320 rgba() function, browser support for 319 rollover effect 478 rotate 93 rotate method 93 rounded corners in CSS3 358–361 with CurvyCorners library 358 S Safari audio codec support 130 HTML validation 465 MP4 support 140 support for, downloadable fonts 399 video codec support 138 same origin restriction 200 saturation 321 Scalable Vector Graphics (SVG) 96, 435 scale 106 element 458 inline 513 element in footers 17 section in an outline 13 vs article sectioning content 32 select element 39 semantics defined implied native semantics 25 strong native semantics 25 server communicating via WebSockets 205 session storage 227–228 Shadow, IE 388 shadowBlur property 91 shadowColor property 91 shadowOffsetX property 91 shadowOffsetY property 91 sidebar 16 SimpleHTTPServer 209 single-threaded vs multithreaded 185 skewX 106 skewX function 326 skewY 106 slider 44 sliding doors technique 366 element 17 socket object 207 element 133, 142 element 452 spellcheck attribute 155, 157–159 spread-radius value 354 Standards mode 485 standards mode 18 strokeRect method 76 element 22 element 469 style attribute 469 styleWithCSS command 162 531 SVG 96–111 applying styles to 98–99 browser support for 96, 114 content, grouping 104 drawing shapes 99–101 embedding as an image 115 embedding as an object 116 embedding HTML in elements 103 embedding images in 101 image, referencing from CSS 116 in XML vs in HTML 115 support in older browsers 116 transformations in 105–107 SVG Web 117 SVG Web fonts 398 T element applying a pattern to 108 text baseline 87 bold 160 cutout 92 drawing in 84–87 drawing in SVG 101–103 editing 155–157 following a path 102 font 85 formatting 160 advanced 162–164 browser implementations 161 italic 160 maximum width 86 text input is the maxlength attribute 47 title attribute 48 532 INDEX element 39 text-overflow property browser support for 422 element 102 text-selection API 162 text-shadow property, browser support for 356 Theora, browser support for 139 element 18–21 time input 45 timeupdate event 145 touch-enabled media query 292 transform 2D 324 browser support for vendor prefixes 346 transform attribute 104 transformation in order of 94 rotate 93 translate 93 in SVG 105–107 matrix 106 scale 106 skewX and skewY 106 translate 105 transform-origin property 325 transform-style property 329 transition 330–342 browser support for 331 timing function 334–337 triggering with JavaScript 339 transition-delay property 338 transition-duration property 332 transition-property property 337–338 translate 93 translate transformation 93 translateX function 326 triangle, drawing in 79 TrueType font (TTF) 398 element 102 typography, on the web 393–394 advanced 407–415 U
- element 448 undo feature 177–179 update_child function 202 URL fragment identifier 265 validity of 53 user feedback 53–56 V valid 264 validation 46–50 CSS and 49–50 messages, customizing 62–64 min, max, pattern attributes 47–48 turning off 50 valueAsDate property 68 valueAsNumber property 68 var keyword 500 Vector Markup Language (VML) 115 Veness, Chris 197 element attributes 135–138 browser support for 150–152 controls 136 currentSrc property 142 fallback content 136 loadeddata event 145 loop attribute 136 multiple sources 142–143 pause() method 144 play() method 144 preload attribute 136 transformations 146–150 width and height, setting with CSS 137 video controls 144 view, navigating between 176 viewBox 97 ViolaWWW 427 W W3C Recommendation (R) 431 W3C Web Open Font Format (WOFF) 398 watchPosition method 196 WAV audio, browser support for 151 web font 393–400 @font-face rule, support for 398 advanced features 409–416 browser support for 409 bold 396–397 comparisons 393 downloadable, browser support for 399 italic 397 long s 413 numbers 411–412 O vs zero 413 size metrics 408 stylistic alternates 413 text columns 416–420 browser support for 416 count and width 416–417 gaps and rules 419 span 418–419 text wrapping 420 INDEX Web Hypertext Application Technology Working Group (WHATWG) 154 principles followed in development of HTML5 437 web server, configuration for multimedia 151 web worker 185–188 web, history of 425–437 client-side interactivity 431–435 competing standards 435 WebKit, support for HTML5 features 69 WebM 130 browser support for 140 video, browser support for 151 WebSocket API 205–208 browser support for 206 node.js server 206 What You See Is What You Get (WYSIWYG) 154 whitespace 446 window object 516 word-wrap property 420–421 browser support for 421 Work Offline 216 Working Draft (WD) 431 World Wide Web browser 427 World Wide Web Consortium (W3C) 428 standards process in 1998 431 standards process in 1999 432 validator 464 533 World Wide Web Consortium Process 431 wrap-margin property 308 wrap-shape-mode property 306 writeLoc function 199 www-talk mailing list 427 X XHTML 435 XHTML2 438 xlink:href 101 XML, vs HTML 435 XMLHTTP control 433 XmlHTTPRequest 434 Y YouTube, ease of use 121 Z zoom 309 WEB DEVELOPMENT/HTML Free eBook see insert HTM L5 & CSS3 “A fast-paced introduction Recommended to anyone who needs a quick-start resource.” Rob Crowther “Everything you need to know explained simply and clearly.” —Jason Kaczor, Microsoft MVP “It’s 2012 You need this book!” —Mike Greenhalgh, NHS Wales “Level up your web skills!” —Greg Donald, CallProof, LLC —Greg Vaughn, LivingSocial W hether you’re building web pages, mobile apps, or desktop apps, you need to learn HTML5 and CSS3 So why wait? Hello! HTML5 & CSS3 is a smart, snappy, and fun way to get started now In this example-rich guide to HTML5 and CSS3, you’ll start with a user-friendly introduction to HTML5 markup and then take a quick tour through forms, graphics, drag-and-drop, multimedia, and more Next, you’ll explore CSS3, including new features like drop shadows, borders, colors, gradients, and backgrounds Every step of the way, you’ll find hands-on examples, both large and small, to help you learn by doing PROFESSIONAL DEVELOPMENT? AREN’T MOST WEBSITES DONE BY THE BOSS’S TEENAGE NEPHEW? What’s inside Easy-to-follow intro to HTML5 and CSS3 Fully illustrated and loaded with examples YOU KNOW IT’S NOT 1999 ANY MORE RIGHT? Designed for low-stress learning No prior experience needed! Don’t worry—you aren’t alone! The cast of characters from User Friendly is learning HTML5 and CSS3 along with you as you read Rob Crowther is a web developer and blogger from London To download their free eBook in PDF, ePub, and Kindle formats, owners of this book should visit manning.com/HelloHTML5andCSS3 M AN N I N G US $39.99 / Can $41.99 ... heading elements, and A element appears near the top of a document, a section, or an article and usually contains the main heading and often some navigation and search... or interactive content, then you can safely skip chapters 2, 5, and Chapter deals with dynamic graphics and with audio and video, and chapters and 10 deal with the more visual-impact aspects... images, and text 74 Drawing shapes text 84 76 ❍ Placing images 82 ❍ Drawing Advanced : gradients, shadows, and animation 87 Creating gradients 88 ❍ Drawing drop shadows 91 Transformations