HTML, CSS, & Javascript Mobile Development for Dummies
Total Page:16
File Type:pdf, Size:1020Kb
Mobile Development/HTML ™ Making Everything Easier! Master the art of designing web pages for mobile devices — Open the book and find: a site for small screens! & JavaScript CSS HTML, • Why you should know WURFL Mobile Development HTML, CSS ® When designing a web page for mobile devices, the big thing • A system for keeping your site is — think small! Your objective is to provide what the mobile up to date user wants without losing the “wow” in your website. This • All about bitmap and vector book shows you how to do it using three key technologies. & JavaScript images Soon you’ll be building mobile pages with forms, quizzes, appropriate graphics, shopping carts, and more! • Easy ways to adjust your site for different devices Mobile Development • Think mobile — consider screen size, lack of a mouse, duel • Powerful SEO ideas to get your orientation screens, and mobile browsers site noticed • Know your audience — understand how people use the mobile • Tips for creating a mobile web and how their habits differ from those of desktop users shopping cart • Get interactive — optimize multimedia files and develop contact • How to take your blog theme forms that encourage visitors to interact with your site mobile ® • Latest and greatest — maximize the new features of HTML5 and CSS3, automate your site with JavaScript, and use WebKit Extensions • Ten mobile CSS-friendly apps and widgets • Be sure they find you — make your mobile site both easily searchable and search engine-friendly Learn to: • Use standard web tools to build sites Go to Dummies.com® for iPhone®, iPad®, BlackBerry®, and Visit the companion website at www.wiley.com/go/ for videos, step-by-step examples, Android ™ platforms htmlcssjscriptmobiledev for code samples you can how-to articles, or to shop! use when creating your mobile sites. • Optimize sites for all mobile devices • Accommodate different mobile browsers and security features • Take advantage of HTML5 $29.99 US / $35.99 CN / £21.99 UK William Harrel designs websites and operates a company that specializes ISBN 978-1-118-02622-9 in developing apps and websites to help customers integrate handheld devices into their phone and data systems. A freelance technology journalist, he contributes regularly to PC World, Windows Magazine, and MacWorld. Harrel William Harrel Get More and Do More at Dummies.com® Start with FREE Cheat Sheets Cheat Sheets include • Checklists • Charts • Common Instructions • And Other Good Stuff! To access the Cheat Sheet created specifically for this book, go to www.dummies.com/cheatsheet/htmlcssjavascriptmobilewebdevelopment Mobile Apps Get Smart at Dummies.com Dummies.com makes your life easier with 1,000s of answers on everything from removing wallpaper to using the latest version of Windows. Check out our • Videos • Illustrated Articles • Step-by-Step Instructions There’s a Dummies App for This and That Plus, each month you can win valuable prizes by entering our Dummies.com sweepstakes. * With more than 200 million books in print and over 1,600 unique Want a weekly dose of Dummies? Sign up for Newsletters on titles, Dummies is a global leader in how-to information. Now • Digital Photography you can get the same great Dummies information in an App. With • Microsoft Windows & Office topics such as Wine, Spanish, Digital Photography, Certification, • Personal Finance & Investing and more, you’ll have instant access to the topics you need to • Health & Wellness know in a format you can trust. • Computing, iPods & Cell Phones • eBay To get information on all our Dummies apps, visit the following: • Internet www.Dummies.com/go/mobile from your computer. • Food, Home & Garden www.Dummies.com/go/iphone/apps from your phone. Find out “HOW” at Dummies.com *Sweepstakes not currently available in all countries; visit Dummies.com for official rules. HTML, CSS ® & JavaScript Mobile Development FOR DUMmIES‰ by William Harrel 01_9781118026229-ffirs.indd i 8/4/11 2:28 PM HTML, CSS & JavaScript® Mobile Development For Dummies® Published by John Wiley & Sons, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2011 by John Wiley & Sons, Inc., Hoboken, NJ Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit- ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http:// www.wiley.com/go/permissions. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affi liates in the United States and other countries, and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITH- OUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZA- TION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport. Wiley also publishes its books in a variety of electronic formats and by print-on-demand. Not all content that is available in standard print versions of this book may appear or be packaged in all book formats. If you have purchased a version of this book that did not include media that is referenced by or accompa- nies a standard print version, you may request this media by visiting http://booksupport.wiley.com. For more information about Wiley products, visit us www.wiley.com. Library of Congress Control Number: 2011935811 ISBN 978-1-118-02622-9 (pbk); ISBN 978-1-118-15763-3 (ebk); ISBN 978-1-118-15762-6 (ebk); ISBN 978-1-118-15764-0 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 01_9781118026229-ffirs.indd ii 8/4/11 2:28 PM About the Author William Harrel has nearly 25 years of digital design experience. He was one of the pioneers of publishing on desktop computers, starting with the very fi rst digital design and graphics programs, PageMaker and Photoshop. Like so many of the early “desktop publishers,” with the emergence of the World Wide Web, he found that making the transition to web design was the next logical step. His design fi rm has designed hundreds of websites, Flash websites, and electronic documents. His earlier books on Photoshop, PageMaker, and digital media in general were some of the fi rst publications on these topics. William Harrel has authored or coauthored 19 books on designing both print media and electronic documents, such as websites, PDFs, Flash sites and Flash applications, slide and multimedia presentations, on computers. These include titles on Photoshop, Acrobat (Acrobat For Dummies), PageMaker, Flash, Director, and several other graphics and publishing packages. His latest online courses, Introduction to Adobe Flash CS4, Introduction to Adobe Flash CS5, Intermediate Adobe Flash CS4, and Intermediate Adobe Flash CS5, are currently offered at more than 2,500 colleges and universities. These are fully accredited courses offering in-depth instruction on Flash, including lessons on developing Flash applications for handheld devices. He has also written hundreds of magazine articles, ranging in subject matter from Mac, PC, and other hardware reviews to all types of software packages — including page layout, graphics, web design, Flash, multimedia, and word processing — in such notable magazines as PC World, Home Offi ce Computing, Compute, Windows Magazine, Publish, Entrepreneur, Home Offi ce, and many, many others. He currently reviews printers, notebook computers, and tablets for Computer Shopper. Harrel’s blog, Communications Technology Watch (http://comm techwatch.com), is a well-respected source for information related to media designed for and on computers. Communications Technology Watch contains volumes of material on using Flash and other applications, includ- ing most programs in the Adobe Creative Suite. William Harrel was also the owner-operator of a nationwide Internet Service Provider (ISP) for 14 years.