Foundation Website Creation with HTML5, CSS3, and Javascript
Total Page:16
File Type:pdf, Size:1020Kb
Foundation Website Creation with HTML5, CSS3, and JavaScript Jonathan Lane, Tom Barker, Joseph R. Lewis, and Meitar Moscovitz FOUNDATION WEBSITE CREATION WITH HTML5, CSS3, AND JAVASCRIPT Copyright © 2012 by Jonathan Lane, Tom Barker, Joseph R. Lewis, and Meitar Moscovitz This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher's location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law. ISBN 978-1-4302-3789-1 ISBN 978-1-4302-3790-7 (eBook) Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logos, or image we use the names, logos, or images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. For information on translations, please e-mail [email protected] or visit www.apress.com. Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales– eBook Licensing web page at www.apress.com/bulk-sales. Any source code or other supplementary materials referenced by the author in this text is available to readers at www. apress.com. For detailed information about how to locate your book’s source code, go to www.apress.com/source-code. Credits President and Publisher: Copy Editor: Paul Manning Patrick Meader Lead Editor: Compositor: Ben Renow-Clarke SPi Global Technical Reviewers: Proof Reader: Heather Wallace SPi Global Editorial Board: Indexer: Steve Anglin, Ewan Buckingham, Gary Cornell, SPi Global Louise Corrigan, Morgan Ertel, Jonathan Gennick, Artist: Jonathan Hassell, Robert Hutchinson, Michelle Lowman, SPi Global James Markham, Matthew Moodie, Jeff Olson, Jeffrey Pepper, Douglas Pundick, Cover Image Artist: Ben Renow-Clarke, Dominic Shakeshaft, Corné van Dooren Gwenan Spearing, Matt Wade, Tom Welsh Cover Designer: Coordinating Editor: Anna Ishchenko Debra Kelly For my beautiful Rachel. You are amazing in so many ways, and I absolutely adore you. —Jonathan Lane For my beautiful Rabbit. —Tom Barker To my beautiful wife, whom I love beyond measure. —Joseph R. Lewis For Aba, whom most of my work on this book is really for. Hopefully you’ll now feel comfortable using your editor’s Source view. —Meitar Moscovitz Contents at a Glance About the Authors.................................................................................................. xii About the Technical Reviewer.............................................................................. xiii About the Cover Image Designer............................................................................xiv Acknowledgments................................................................................................... xv Introduction.............................................................................................................xvii Chapter 1: Introducing the Past, Present, and Future of the Web ........................ 1 Chapter 2: Keeping a Project on Track .................................................................. 11 Chapter 3: Planning and High-Level Design ......................................................... 31 Chapter 4: Giving Your Pages Structure: HTML5 ................................................. 47 Chapter 5: Exploring Fundamental Concepts of CSS .......................................... 89 Chapter 6: Developing CSS3 in Practice: From Design to Deployment ........... 119 Chapter 7: Responsive Design ............................................................................. 147 Chapter 8: JavaScript Primer ................................................................................ 159 Chapter 9: A Deeper Dive Into JavaScript ........................................................... 175 Chapter 10: Closing the Loop with JavaScript .................................................... 191 Chapter 11: Using Server-Side Technologies ..................................................... 219 Chapter 12: Using WordPress to Jumpstart Development ................................ 235 Chapter 13: Afterword: The Business of the Web .............................................. 253 Index ........................................................................................................................ 269 iv Contents About the Authors.................................................................................................. xii About the Technical Reviewer.............................................................................. xiii About the Cover Image Designer............................................................................xiv Acknowledgments................................................................................................... xv Introduction.............................................................................................................xvii Chapter 1: Introducing the Past, Present, and Future of the Web ........................ 1 The standard way of doing things ........................................................................... 2 Every journey starts with a single step: the Web past........................................... 2 Then there were standards: the Web now ............................................................... 5 A crystal ball: the Web future ................................................................................... 9 What’s inside this book?........................................................................................... 9 Chapter 2: Keeping a Project on Track .................................................................. 11 The traditional approach to project management ................................................ 12 The nine knowledge areas ................................................................................... 13 Web project management: the power of iteration ................................................ 14 An agile example of planning .............................................................................. 15 Achieving the goal: identifying doneness ........................................................... 16 “But the PMI covers nine areas; you’ve talked about only three!” ..................... 20 Tools available .......................................................................................................... 22 The old toolbox .................................................................................................... 22 The alternatives ................................................................................................... 23 Summary: the best advice ...................................................................................... 26 Profiling professions: Jason Fried ......................................................................... 26 Chapter 3: Planning and High-Level Design ......................................................... 31 The toolbox............................................................................................................... 32 Goals and objectives discussion ......................................................................... 32 Brainstorming ...................................................................................................... 34 User stories and user personas .......................................................................... 35 Feature/unfeature list ........................................................................................... 37 Wireframes ........................................................................................................... 38 Mock-ups ............................................................................................................