Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Peter Gasston

A Guide to Modern Web DevelopmentToday's web technologies are evolving at near-light speed, bringing the promise of a seamless Internet ever closer to reality. When users can browse the Web on a three-inch phone screen as easily as on a fifty-inch HDTV, what's a developer to do?Peter Gasston's The Modern Web will guide you through the latest and most important tools of device-agnostic web development, including HTML5, CSS3, and JavaScript. His plain-English explanations and practical examples emphasize the techniques, principles, and practices that you'll need to easily transcend individual browser quirks and stay relevant as these technologies are updated.Learn how to:Plan your content so that it displays fluidly across multiple devices Design websites to interact with devices using the most up-to-date APIs, including Geolocation, Orientation, and Web Storage Incorporate cross-platform audio and video without using troublesome plug-ins Make images and graphics scalable on high-resolution devices with SVG Use powerful HTML5 elements to design better formsTurn outdated websites into flexible, user-friendly ones that take full advantage of the unique capabilities of any device or browser. With the help of The Modern Web, you'll be ready to navigate the front lines of device-independent development.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical, plain-English guide for web developers who want to build sites that work seamlessly across phones, tablets, desktops, and TVs, using the core tools of HTML5, CSS3, and JavaScript—ideal for those upgrading legacy sites or starting fresh in a multi-device world. 【Book Arc】 - **Opening (~0%–9%)**: Introduces the book’s mission—navigating the fast-evolving web platform for device-agnostic development—and sets expectations with praise from industry experts, establishing the author’s credibility and the book’s consultative tone. - **Early (~18%–27%)**: Maps the device landscape (desktop, mobile, tablet, TV, and “in-betweeners”), then lays the foundation: what HTML5 really is, the new template, CSS3 basics, vendor prefixes, and the critical habit of testing across browsers and devices. - **Early (~32%–41%)**: Dives into structure and semantics—new HTML5 elements, WAI-ARIA, microformats, RDFa, microdata, and data attributes—then shifts to device-responsive CSS, covering viewport units, mobile-first breakpoints, and the challenge of responsive images. - **Middle (~41%–50%)**: Explores new CSS layout approaches—multi-columns, flexbox, and grid layout—with practical details on alignment, ordering, and syntax evolution, followed by modern JavaScript techniques like async/defer, event listeners, and class interaction. - **Middle (~50%–55%)**: Covers JavaScript libraries (jQuery, Modernizr, polyfills) and device APIs—geolocation, orientation, fullscreen, vibration, battery status, web storage, drag-and-drop, and file interaction—plus native wrappers like PhoneGap. - **Late (~55%–end)**: Focuses on images and graphics (SVG vs. canvas), then moves to new forms, multimedia, web apps, and future trends, closing with browser support tables and further reading—though excerpts only partially cover these final chapters. 【Key Takeaways】 - **Device-agnostic development is the core goal** (Opening): The book’s premise is that users expect the same web experience on a 3-inch phone as on a 50-inch TV, so developers must plan content to flow fluidly across all screens. This sets the tone for every technique that follows. - **Testing is non-negotiable** (Early): With browser quirks and rapid updates, the author stresses “test and test and test some more” as a best practice, not an afterthought—essential for staying relevant as technologies evolve. - **Semantic markup is a foundation, not a luxury** (Early): HTML5’s new sectioning elements, WAI-ARIA, and microdata (via Schema.org) improve accessibility and search visibility, but the book warns of downsides like overuse of sectioning elements—so use them deliberately. - **Responsive CSS is about units and breakpoints** (Middle): Root-relative units (like rem) and mobile-first content breakpoints are key to fluid layouts, while responsive images remain a “problem” that HTML5 solutions only partially solve—a heads-up for real-world projects. - **Flexbox and grid are the layout future** (Middle): The book walks through multi-columns, flexbox (ordering, alignment, flexibility), and grid layout (defining, repeating, placing items), showing how these replace older float-based hacks—though grid syntax was still evolving in 2013. - **Modern JavaScript is about performance and libraries** (Middle): Async/defer attributes, addEventListener, and DOMContentLoaded improve load times and interaction, while libraries like jQuery, Modernizr, and polyfills bridge browser gaps—practical for immediate use. - **Device APIs unlock hardware features** (Middle): Geolocation, orientation, fullscreen, vibration, battery status, and web storage let web apps feel native, with PhoneGap as a bridge to native stores—expanding what “web development” means. - **SVG and canvas serve different graphics needs** (Late): SVG scales crisply for high-resolution devices and integrates with CSS, while canvas is better for image manipulation—choose based on whether you need resolution independence or pixel-level control. 【Reading Tips】 - **Skim the opening chapters (0–27%)** if you’re already familiar with HTML/CSS basics; focus on the device landscape and testing philosophy, then jump to the practical chapters. - **Deep-read Chapter 3–4 (responsive CSS and layouts)** if you’re building multi-device sites; these are the book’s core value, with concrete examples on breakpoints, flexbox, and grid—though note grid syntax has changed since 2013. - **Treat Chapter 5–6 (JavaScript and device APIs) as a reference**: Skim the library overviews (jQuery, Modernizr) and dive into specific APIs (geolocation, web storage) when you need them; the code snippets are self-contained. - **Watch for outdated specifics**: Browser support tables (as of March 2013) and some APIs (e.g., battery status) are dated; use the concepts, but verify current support via caniuse.com. - **Take away the mindset, not just the code**: The book’s lasting value is its device-agnostic philosophy and testing discipline—apply these to modern frameworks, even if the exact syntax evolves. 【Coverage Limits】 Excerpts cover the book’s structure and early-to-middle chapters in detail, but the final chapters (new forms, multimedia, web apps, future trends) are only partially represented, so this guide’s takeaways on those topics are limited.
Page 1
g the promise of a seamless Internet ever closer to reality. When users can browse the Web on a three-inch His plain-English explanations and practical examp...
View in text
Excerpt 2
directly or indirectly by the information contained in it. For Dave, Jim, Morena, Nick, Rupert, Steve, and all of the other organizers of the London Web Stan...
View in text
Page 10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Test and Test and Test Some More . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
View in text
Page 11
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Declaring and Defining the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
View in text
Page 13
. . . . . . 150 Displaying Information to the User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 progress . . . . . . . . . ....
View in text
Page 14
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
View in text
Page 19
s consoles—that I’m running out of fingers to count them on. This book is about front-end web development in this new web- everywhere era. It’s about learnin...
View in text
Page 20
oward it), so users tend to get new features fairly quickly. Of course, a sizable percentage of users are still running older, less capable browsers, so you...
View in text
Tags
AI categories
Web Technologyhtmlcss
ISBN: 1593274874
Publisher: No Starch Press
Publish Year: 2013
Language: English
Pages: 264
File Format: PDF
File Size: 8.2 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…