ebook img

HTML, XHTML & CSS For Dummies, 7th Edition PDF

420 Pages·2010·25.8 MB·English
by  TittelEd
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview HTML, XHTML & CSS For Dummies, 7th Edition

Spine: .82” Build your Web pages and Programming Languages/HTML In get them uploaded and published Color Introduces HTML5 and CSS3! 7th Edition with (X)HTML and CSS! 7th Edition HH You don’t have to be an expert programmer to build great Open the book and find: Web pages. If you can follow driving directions to a friend’s TT hThoiuss beo, yooku w hilal vneo wt ohnalty i ts htaokwes y toou b tuhield d ae suigsenf ualn Wd etebc dhoncicuaml ent. (cid:129) pHuobwl itsoh pWlaenb, pbaugileds, test, and MM M L , X H TM L & C SS H T elements you need to create good-looking, readable Web (cid:129) Steps for formatting Web pages LL with (X)HTML pages — it will give you the confidence to get started! ,, (cid:129) Advice on planning a problem- X X (cid:129) Speak the language — master HTML, XHTML, and CSS syntax, free Web site create and view a Web page, and plan your site HH (cid:129) Solutions for adding inter- (cid:129) Gather the building blocks — learn how to work with text and lists, activity with JavaScript TT create and customize links, and add images to your Web site (cid:129) Ways to embed content from MM (cid:129) Build it correctly — take precise control with Cascading Style Sheets Flickr®, Twitter®, YouTube®, (CSS) and get creative with colors and fonts and Google Maps™ LL (cid:129) Juice it up with JavaScript — integrate scripts, add dynamic content (cid:129) Tips for enhancing your Web && with (X)HTML, CSS, and JavaScript, and get familiar with popular site’s capabilities content management systems (cid:129) How to design for smartphones, CC (cid:129) Go mobile — design your site for optimal viewing on mobile devices iPads, and other mobile devices with HTML and CSS SS (cid:129) Techniques for eliminating bugs (cid:129) Out with the old, in with the new — find out what elements are in your Web pages SS deprecated and look ahead to HTML5 and CSS3 Making Everything Easier!™ Learn to: Visit the companion Web site at (cid:129) Develop and build Web pages using dummieshtml.com for downloads, HTML, XHTML, and CSS source code, and more. Go to Dummies.com® (cid:129) Work with content management for videos, step-by-step examples, systems like Drupal®, WordPress®, how-to articles, or to shop! and Joomla!® (cid:129) Plan and design Web pages with mobile devices in mind $29.99 US / $35.99 CN / £21.99 UK IN FULL COLOR! ISBN 978-0-470-91659-9 Ed Tittel is a 28-year veteran of the computer industry. A seasoned author and consultant, Ed has more than 140 books to his credit. Jeff Noble is a Ed Tittel principle user experience designer at CA Technologies. He specializes in Jeff Noble designing, building, optimizing, and explaining all aspects of Web sites and enterprise software applications. Tittel Noble Foreword by Eric Meyer www.it-ebooks.info Spine: .82” Get More and Do More at Dummies.com ® Start with FREE Cheat Sheets Cheat Sheets include (cid:129) Checklists (cid:129) Charts Mobile Apps (cid:129) Common Instructions (cid:129) And Other Good Stuff! To access the Cheat Sheet created specifically for this book, go to www.dummies.com/cheatsheet/html 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 (cid:129) Videos (cid:129) Illustrated Articles There’s a Dummies App for This and That (cid:129) Step-by-Step Instructions Plus, each month you can win valuable prizes by entering With more than 200 million books in print and over 1,600 unique our Dummies.com sweepstakes. * titles, Dummies is a global leader in how-to information. Now Want a weekly dose of Dummies? Sign up for Newsletters on you can get the same great Dummies information in an App. With (cid:129) Digital Photography topics such as Wine, Spanish, Digital Photography, Certification, (cid:129) Microsoft Windows & Office and more, you’ll have instant access to the topics you need to (cid:129) Personal Finance & Investing know in a format you can trust. (cid:129) Health & Wellness (cid:129) Computing, iPods & Cell Phones To get information on all our Dummies apps, visit the following: (cid:129) eBay (cid:129) Internet www.Dummies.com/go/mobile from your computer. (cid:129) 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. www.it-ebooks.info HTML, XHTML & CSS FOR DUMmIES ‰ > m o 7 k.c TH EDITION o o b e w o w w. w w < k o o by Ed Tittel and Jeff Noble B e w! o W m Foreword by Eric A. Meyer o d fr a o nl w o D www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd ii 1111//3300//1100 1122::2299 AAMM HTML, XHTML & CSS For Dummies®, 7th Edition Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2011 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana 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. Wiley Publishing, 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. FULFILLMENT OF EACH COUPON OFFER IS THE SOLE RESPONSIBILITY OF THE OFFEROR. 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. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2010941511 ISBN: 978-0-470-91659-9 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd iiii 1111//3300//1100 1122::2299 AAMM About the Authors Ed Tittel is a freelance writer, consultant, and occasional expert legal witness on Web technologies who works at home near beautiful Austin, Texas. Ed has written for the trade press since 1986 and has worked on more than 140 books. Ed has worked on many other titles for Wiley, too, including Windows Server 2008 For Dummies, XML For Dummies, and Networking with NetWare For Dummies. Lately, he’s worked on various For Dummies custom titles, includ- ing booklets on clustered computing, mobile backhaul, XBRL Markup, and carrier Ethernet. Ed blogs, provides expert Q&A, and writes for several TechTarget.com Web sites, such as SearchNetworking.com and SearchWindows.com. He also writes for ITExpertVoice, Tom’s Hardware, Tom’s Guide, and more. When he’s not busy working, Ed likes to travel, shoot pool, and spend time with his family. He also loves to spend time in the kitchen cooking like mad, or sous- cheffi n’ for his cuisine-crazy wife, Dina. Contact Ed by e-mail at etittel@ yahoo.com. Jeff Noble somehow manages to juggle being a principal user designer at a global software company, CA Technologies, associate editor of UItrends. com (a blog about the good, the bad, and the ugly of user interface design), and owner of Conquest Media (www.conquestmedia.com), a small Web and application design company in Austin, Texas. Jeff has more than twelve years of design experience and specializes in all aspects of Web sites and enterprise software applications (designing, building, optimizing, explain- ing, and so on). In addition to this title, he’s handled technical editing on six other For Dummies Web design and programming titles for Wiley. In what little spare time he has away from the computer, Jeff enjoys childish activi- ties like eating unhealthy amounts of candy and breaking things, as well as relaxing hobbies like hiking, traveling, and gardening. Jeff is available for Web site and enterprise application consulting. You can contact him by e-mail at [email protected]. www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd iiiiii 1111//3300//1100 1122::2299 AAMM Authors’ Acknowledgments Wow! It’s hard to believe we’ve hit the “lucky 13th edition” for HTML For Dummies. Of all the books I’ve worked on, this one’s covered more time and versions than the rest. So thanks again readers, for keeping this book going strong. We’d also like to thank our readers and the Wiley editors for provid- ing welcome feedback to drive continuing improvement of this book. Don’t stop now — keep telling us what you want. Especially, tell us what you liked and didn’t like about this second full-color edition. Let me also thank some people from previous editions, including J. Michael Stewart, Natanya Anderson, Dori Smith, Tom Negrino, Mary Burmeister, Brock Kyle, Chelsea Valentine, Dawn Davidson, and Kim Lindros. And, for the second time, I’m indebted to my co-author and friend, Jeff Noble, for infus- ing insight and enthusiasm. I am grateful for your ideas, your hard work, and your experience in reaching budding Web experts. Thanks, too, to Mary Kyle Inks, who expertly project-managed this effort. At Wiley, I must thank Bob Woerner and Jean Nelson for their outstanding efforts, and Brian Walls, Teresa Artman, and Christopher McGee for their efforts on design, layout, content, and coverage. A special shout-out to the friendly folks in Composition Services for artful page layouts, and for keeping all the color-coded elements straight. Thanks to my lovely wife, Dina Kutueva-Tittel, and inquisitive son, Gregory, for putting up with my sometimes whacky and intense schedule. I’m not always as easy to live with as I could be, but hopefully, I’ll improve with time and effort. Also, thanks to my Dad, Al Tittel, for all he’s done for my family and me, and for dropping in more frequently. I hope you’re around to see our 14th edition come to print! Finally, profound thanks and remembrances to Cecilia Katherine Kociolek Tittel (4/3/1919–9/11/2009). Thanks, Mom, for encouraging my love of words and writing: I still miss you every day. Ed Tittel www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd iivv 1111//3300//1100 1122::2299 AAMM I’d like to thank my girlfriend, Dr. Alison Marr, for generally putting up with me and giving me time and space to work on titles like this. I’d like note that according to my calculations, Alison is approximately 15 times smarter than I am but somehow still allows me to pretend that I’m right all the time. I know she has tried to explain magic graphs at least a dozen times to me but I still don’t get it — evidently it’s not about warlocks and magical fairies. Special thanks to Ida F. Orengo, M.D. and the rest of the staff from the Baylor College of Medicine in Houston, Texas. Without all of you, there is a decent chance I wouldn’t even be alive now. Thanks to Ed Tittel for allowing me to sit in again and handle even more responsibility with this latest edition. This title has been one of the biggest accomplishments in my life and has opened up incredible opportunities to me and I thank you sincerely. To Slade Deliberto, it seems like only yesterday you taught me how to design my fi rst Web site. Technology and software changes over time, but a lot of what I’ve accomplished so far professionally goes all the way back to your initial design and Photoshop lessons more than twelve years ago. Big thanks to my boss and mentor Russell Wilson, you’ve always supported and believed in me and without a doubt have made me a better designer and a better person. I don’t say it as much as I should, I owe you big time and I appreciate everything you have done for me — there, you have it in writing. To CSS master Eric Meyer, thanks for agreeing to write the Foreword to this book. I’ve learned a lot from your volume of work over the years and having my name noted on a book with yours is a huge honor. I’d also like to dedicate this book in memory of my friend Zach Beatty who was tragically killed by a drunk driver in 1997. Please don’t drink and drive, you might kill someone a lot cooler than you. Jeff Noble www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd vv 1111//3300//1100 1122::2299 AAMM Publisher’s Acknowledgments We’re proud of this book; please send us your comments at http://dummies.custhelp.com. For other comments, 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. Some of the people who helped bring this book to market include the following: Acquisitions, Editorial, and Media Composition Services Development Project Coordinator: Kristie Rees Project Editor: Jean Nelson Layout and Graphics: Samantha K. Cherolis, Executive Editor: Bob Woerner Joyce Haughey, Lavonne Roberts Copy Editor: Brian Walls Proofreaders: Laura Bowman, Lindsay Littrell Technical Editor: Christopher McGee Indexer: BIM Indexing & Proofreading Services Editorial Manager: Kevin Kirschner Special Help: Teresa Artman Media Development Project Manager: Laura Moss-Hollister Media Development Assistant Project Manager: Jenny Swisher Media Development Associate Producers: Josh Frank, Marilyn Hummel, Douglas Kuhn, and Shawn Patrick Editorial Assistant: Amanda Graham Sr. Editorial Assistant: Cherie Case Cartoons: Rich Tennant (www.the5thwave.com) Publishing and Editorial for Technology Dummies Richard Swadley, Vice President and Executive Group Publisher Andy Cummings, Vice President and Publisher Mary Bednarek, Executive Acquisitions Director Mary C. Corder, Editorial Director Publishing for Consumer Dummies Diane Graves Steele, Vice President and Publisher Composition Services Debbie Stailey, Director of Composition Services www.it-ebooks.info 0011__99778800447700991166559999--ffffiirrss..iinndddd vvii 1111//3300//1100 1122::2299 AAMM Contents at a Glance Foreword ....................................................................xix Introduction ................................................................ 1 Part I: Getting to Know (X)HTML and CSS ................... 7 Chapter 1: The Least You Need to Know about HTML, CSS, and the Web.................9 Chapter 2: Creating and Viewing a Web Page ..............................................................31 Chapter 3: Proper Planning Prevents Poor Page Performance..................................43 Part II: Formatting Web Pages with (X)HTML ............ 61 Chapter 4: Creating (X)HTML Document Structure ....................................................63 Chapter 5: Text and Lists ................................................................................................73 Chapter 6: Linking to Online Resources .......................................................................91 Chapter 7: Finding and Using Images ..........................................................................105 Part III: Taking Precise Control over Web Pages and Styles .............................................. 119 Chapter 8: Deprecated (X)HTML Markup ...................................................................121 Chapter 9: Introducing Cascading Style Sheets .........................................................129 Chapter 10: Using Cascading Style Sheets ..................................................................147 Chapter 11: Getting Creative with Colors and Fonts .................................................169 Part IV: Scripting and (X)HTML .............................. 189 Chapter 12: Top 20 CSS Properties..............................................................................191 Chapter 13: Scripting Web Pages .................................................................................211 Chapter 14: Working with Forms .................................................................................221 Chapter 15: Bring the Best of the Web to Your Web Site .........................................251 Chapter 16: Fun with Client-Side Scripts.....................................................................265 Chapter 17: Content Management Systems ................................................................279 Part V: The Future of (X)HTML ................................ 291 Chapter 18: Mobile Web Design ...................................................................................293 Chapter 19: Party On with HTML5 ..............................................................................305 Chapter 20: CSS3 ............................................................................................................325 www.it-ebooks.info 0022__99778800447700991166559999--ffttoocc..iinndddd vviiii 1111//3300//1100 1122::3300 AAMM Part VI: The Part of Tens .......................................... 343 Chapter 21: Ten HTML Do’s and Don’ts ......................................................................345 Chapter 22: Ten Ways to Exterminate Web Bugs ......................................................353 Chapter 23: Ten Cool HTML Tools and Technologies ..............................................361 Appendix A: Twitter Supporters ................................. 373 Index ...................................................................... 377 www.it-ebooks.info 0022__99778800447700991166559999--ffttoocc..iinndddd vviiiiii 1111//3300//1100 1122::3300 AAMM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.