HTML 4 for Dummies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 John Wiley & Sons © 2003 (408 pages) Whether your goal is to build a simple, text-oriented Web site or one loaded with frames, graphics, and animation, this step- by-step book will put you on the right track. Table of Contents HTML 4 For Dummies, 4th Edition Introduction Part I - Meeting HTML in Its Natural Environment Chapter 1 - The Least You Need to Know about HTML and the Web Chapter 2 - HTML at Work on the Web Chapter 3 - Creating Your First HTML Page Part II - Getting Started with HTML Chapter 4 - Structuring Your HTML Documents Chapter 5 - Linking to Online Resources Chapter 6 - Finding and Using Images Chapter 7 - Top Off Your Page with Formatting Part III - Taking HTML to the Next Level Chapter 8 - HTML Tables Chapter 9 - HTML Frames Chapter 10 - HTML Forms Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars HTML 4 for Dummies, 4th Edition Back Cover by Ed Tittel and Natanya Pitts ISBN:0764519956 Do you speak HTML? Never fear—this friendly book will save you from getting tangled in the language of the Web. John Wiley & Sons © 2003 (408 pages) It’s loaded with examples, illustrations, and step-by-step instructions on everything from basic tags and attributes to cool new stuff ourW rheeatdheerrs yaosukre dg oaabl oisu tt,o l ibkuei ladd ad isnigm spoleu,n tde,x vt-idoerioe,n atendd Waneibm saittieon, making pages dynamic with scripting, and more.or one loaded with frames, graphics, and animation, this step- by-step book will put you on the right track. About the Authors TEadb Tliett eolf, Ca o2n0t-eyneatsr veteran of the computer industry, ahs worked on over 20 For Dummies books. HTML 4 For Dummies, 4th Edition Natanya Pitts is a writer, trainer, Web guru, and HTML instructor. Introduction Part I - Meeting HTML in Its Natural Environment Chapter 1 - The Least You Need to Know about HTML and the Web Chapter 2 - HTML at Work on the Web Chapter 3 - Creating Your First HTML Page Part II - Getting Started with HTML Chapter 4 - Structuring Your HTML Documents Chapter 5 - Linking to Online Resources Chapter 6 - Finding and Using Images Chapter 7 - Top Off Your Page with Formatting Part III - Taking HTML to the Next Level Chapter 8 - HTML Tables Chapter 9 - HTML Frames Chapter 10 - HTML Forms Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars HTML 4 FHToMrL 4D four Dmummmieise, 4sth, E4dittihon Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 by Ed Tittel & NaJotahnn yWai lPeyit t&s Sons © 2003 (408 pages) Whether your goal is to build a simple, text-oriented Web site Published by or one loaded with frames, graphics, and animation, this step- Wiley Publishingb,y -Instce.p book will put you on the right track. 909 Third Avenue New York, NY 10022 Table of Contents www.wiley.com HTML 4 For Dummies, 4th Edition InCtroopdyurcigtihotn © 2003 by Wiley Publishing, Inc., Indianapolis, Indiana Part I - Meeting HTML in Its Natural Environment CPhaupbtleisrh 1ed b-y TWheil eLye aPsut bYloisuh iNnege, dI ntco. ,K Innodwia nabaopuotl iHs,T IMnLd iaannda the Web Chapter 2 - HTML at Work on the Web Published simultaneously in Canada Chapter 3 - Creating Your First HTML Page PNarot IpIa -r tG oeft tthinisg pSutabrlitceadt iwonit hm HaTyM bLe reproduced, stored in a retrieval system or transmitted in any form or by Cahnapyt mere 4ans,- eSletrcutcrotunriicn,g m Yeocuhr aHnTicMaLl ,D pohcoutmoecontpsying, recording, scanning or otherwise, except as permitted Cuhnapdteerr S5ecti-onLsin 1ki0n7g otor 1O0n8li noef Rthees o1u9r7ce6s United States Copyright Act, without either the prior written Cpheaprmteirs s6ion -ofF itnhdei nPgu abnlids hUesri,n ogr I amuatgheosrization through payment of the appropriate per-copy fee to the CChaopptyerri g7ht C-leTaorpa nOcffe Y Couern tPearg, e2 2w2it hR oFosremwaototidn gDrive, Danvers, MA 01923, (978) 750-8400, fax (978) 750- P4ar4t7 I0I.I R - eTqaukiensgts H tToM thL eto P tuhbel iNsheextr Lfoerv pelermission should be addressed to the Legal Department, Wiley CPhaupbtleisrh 8ing, -InHcT.,M 1L0 T4a7b5le Csrosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, e- Cmhaapitl:e pre 9rmc-oHoTrMdLi [email protected]. Chapter 10 - HTML Forms Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for Part IV - Extending HTML with Other Technologies the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com and related Chapter 11 - Getting Stylish with CSS trade dress are trademarks or registered trademarks of Wiley Publishing, Inc., in the United States and Chapter 12 - HTML and Scripting other countries, and may not be used without written permission. All other trademarks are the property of Chapter 13 - Making Multimedia Magic their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in Chapter 14 - Integrating a Database into Your HTML this book. Chapter 15 - How HTML Relates to Other Markup Languages PLairmt Vit o- fF Lroiamb iWlitye/bD Pisacglaei mtoe Wr oefb WSiaterranty: While the publisher and author have used their best efforts in Cphraepptearr i1n6g th-isC rbeoaotikn,g t haeny H mTMakLe T noool breoxpresentations or warranties with respect to the accuracy or Cchoampteprle 1te7ne-sSs eotft itnhge Ucpo nYtoeunr tsO nolfi nthe isP rbeoseonkc aend specifically disclaim any implied warranties of Cmhaeprtcehr a1n8tab-ilCityre oart ifnitgn ea sGsr feoart aU spearr tIinctuelrafra cpeurpose. No warranty may be created or extended by sales Praerpt rVeIs -e Tnhtaet iPvearst oorf wTerinttsen sales materials. The advice and strategies contained herein may not be suitable Cfhoarp ytoeru r1 9situ-atTioenn .W Yaoyus sthoo Euxltde rcmoninsautlet Wwiethb aB upgrsofessional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to Chapter 20 - Ten HTML Do’s and Don’ts special, incidental, consequential, or other damages. Part VII - Appendixes Appendix A - HTML 4 Tags For general information on our other products and services or to obtain technical support, please contact Appendix B - HTML Character Codes our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax Appendix C - Glossary 317-572-4002. Index CWheialet yS ahleseot p-uHbTliMshLe 4s Fitosr bDouomksm iine sa, v4athri eEtdyi toiof nelectronic formats. Some content that appears in print may Linsot to bf eF igauvareilsable in electronic books. List of Tables Library of Congress Control Number: 2002114830 List of Listings LiIsSt BoNf S: 0id-e7b6a4r5s-1995-6 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 4O/TR/QR/QT/IN About the Authors Ed Tittel is a full-time writer-trainer who manages a small gang of technoids at LANWrights, his company HTML 4 for Dummies, 4th Edition in Austin, TX. Ed has been writing for the trade press since 1986 and has worked on more than 100 books. by Ed Tittel and Natanya Pitts ISBN:0764519956 In addition to this title, Ed has worked on more than 30 books for Wiley, including Networking Windows NT John Wiley & Sons © 2003 (408 pages) Server For Dummies, XML For Dummies, and Networking with NetWare For Dummies. Whether your goal is to build a simple, text-oriented Web site or one loaded with frames, graphics, and animation, this step- Ed teaches NetWorld + Interop and for private clients on demand. He also writes regularly for Certification by-step book will put you on the right track. magazine, Cramsession.com, and a variety of Web sites. When he's not busy doing all that work stuff, Ed likes to travel, shoot pool, spend time with his family, and wrestle with his indefatigable Labrador retriever, TaBbllaec okfie C.ontents HTML 4 For Dummies, 4th Edition You can contact Ed Tittel by e-mail at [email protected]. Introduction Part I - Meeting HTML in Its Natural Environment Natanya Pitts is a writer, trainer, and Web guru in Austin, TX. She has extensive experience in the Chapter 1 - The Least You Need to Know about HTML and the Web technical training realm, including overseeing the development of the materials for in-class and Web- Chapter 2 - HTML at Work on the Web based training offerings. She also helped establish the Austin Community College Webmaster Certification Cphraopgterar m3 an-dC traeuagtihntg i nY tohuer pFirrosgt rHaTmM Lfo Pr atgweo years. Natanya has authored, coauthored, or contributed to Pmarot rIeI t-h Gaent tain dgo Szteanr tWede wb-it ah nHdT IMnLternet-related titles, including XML For Dummies (1st, 2nd, and 3rd CEhadpittioern s4),T h-eS XtrMucLt uBrliancgk Y Bouoro kH,T aMnLd D XoMcuLm Ienn Rtsecord Time. Natanya has also taught classes on HTML, CDhaypntaemr 5ic HT-MLiLn,k ianngd t oX MOnLl iante sReevseoruarl cneastional conferences (including MacWorld, Networld + Interop, and CHhaPp tWero 6rld), -aFsi nwdeinllg a asn adt Uthsein Ng AImSaAg Aesmes Research Center. Chapter 7 - Top Off Your Page with Formatting You can contact Natanya Pitts at [email protected]. Part III - Taking HTML to the Next Level Chapter 8 - HTML Tables Authors' Acknowledgments Chapter 9 - HTML Frames CBhaepctaeur s1e0 th-is HisT MthLe Feoigrmhtsh iteration of HTML For Dummies, we'd like to start by thanking our many readers Pfaorrt mIVa -k Einxgt ethnidsi nbgo oHkT MaL c wonitthin Ouethde sr uTceccehsnso.l oWgiee'sd also like to thank them and the Wiley editorial team for Cthhaep tfeere d11bac-kG thetatti ndgr iSvetysl itshhe w citohn CtinSuSing improvement of this book's content. Please, don't stop now - tell us Cwhahpatte yr o1u2 w-anHt TtMo Ld oan wdi tShc HripTtMinLg, and what you do and don't like about this book. Chapter 13 - Making Multimedia Magic Let me go on by thanking my sterling coauthor, Natanya Pitts, for her efforts on this revision. I am eternally Chapter 14 - Integrating a Database into Your HTML grateful for your ideas, your hard work, and your experience in reaching an audience of budding Web Chapter 15 - How HTML Relates to Other Markup Languages experts. Part V - From Web Page to Web Site CNhaepxtte, rI' d1 6like- tCor ethaatinnkg tahne HgTreMaLt Tteooalmbosx at LANWrights and Wiley for their efforts on this title. At LANWrights, Cmhayp tfeerr v1e7nt t-hSaentktsin ggo U tpo YMoaurr yO Bnulinrme ePrisetseern, cfoer her services and the time spent on this book. Because Mary Chheaprsteerlf 1r8evis-eCdr eqautiitneg a a b Gitr oeaf tc Uopseyr, sInhtee rgfaectse 'nodding credit' for her more substantive contributions, too. PTarhta VnIk -s TMhaer Pya! rAt to Wf Tileenys, I must thank Bob Woerner and Nicole Haims for their outstanding efforts, and CBhaaprrtye rC 1h9ilds--THeenl toWna yfos rt oh isE xmtearrmveinloatues W weaby sB uwgitsh our words. Other folks we need to thank include the folks Cihna Cptoemr 2p0osi-tioTne nS eHrTvMicLe sD ofo’sr athnedi rD aorntf’utsl page layouts, and the Media Development team for their assistance Pwaritth V tIhIe - HApTpMeLn dFioxer sDummies Web site on Dummies.com. Appendix A - HTML 4 Tags I'd like to thank and welcome my lovely wife, Dina Kutueva-Tittel, for signing up with me all the way from Appendix B - HTML Character Codes Kyrgyzstan, and for making the big move from central Asia to central Texas. Welcome to my home, my Appendix C - Glossary heart, and my house, honey! Finally, I'd like to thank my parents, Al and Ceil, for all the great things they Index did for me. I must also thank my faithful sidekick, Blackie, who's always ready to pull me away from the Cheat Sheet - HTML 4 For Dummies, 4th Edition keyboard - sometimes literally - to explore the great outdoors. List of Figures - Ed Tittel List of Tables LiFstir sotf aLnisdti nfogrsemost I'd like to thank my coauthor, Ed Tittel, for giving me the opportunity to work on this Libsot ookf Saigdaebina.r Ist's been fun! In addition to being a great coauthor, you've been a great friend. This book wouldn't have been possible without the editorial and managerial efforts of Mary Burmeister. Thank you so much for keeping me on track and keeping me sane. Special thanks to my beloved husband, Robby, and my beautiful daughter, Alanna. All things are easier because you are a part of my life. Thanks to my parents, Charles and Swanya, for always believing in me and supporting me. - Natanya Pitts Publisher's Acknowledgments We're proud of this book; please send us your comments through our online registration form located at www.dummies.cHoTmM/Lr 4e gfoirs tDeurm/m. ies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 Some of the peopJoleh nw Whoil ehye l&p eSdo nbsr i©n g20 t0h3i s(4 b08o poakg etso) market include the following: Whether your goal is to build a simple, text-oriented Web site Acquisitions, Edoirto orniael l,o aandded M weitdhi afr Damevese,l ogprampheincts, and animation, this step- by-step book will put you on the right track. Senior Project Editor: Nicole Haims Table of Contents HATMcqL u4i sFiotiro Dnusm Emdiietso,r :4th Edition Bob Woerner Introduction Part I - Meeting HTML in Its Natural Environment Senior Copy Editor: Chapter 1 - The Least You Need to Know about HTML and the Web Barry Childs-Helton Chapter 2 - HTML at Work on the Web CThaepcthenr i3cal E-dCirteoart:ing Your First HTML Page PMarat tIthI e- wG eHttaiungg hSetayrted with HTML Chapter 4 - Structuring Your HTML Documents Editorial Manager: Chapter 5 - Linking to Online Resources Leah Cameron Chapter 6 - Finding and Using Images Chapter 7 - Top Off Your Page with Formatting Permissions Editor: PCarat rImIIe -n T Karkikinogri aHnTML to the Next Level Chapter 8 - HTML Tables CMhaepdteiar D9eve-lHoTpMmLe Fnrta Smpeescialist: CMhaepgtaern 1D0ec-raHeTnMeL Forms Part IV - Extending HTML with Other Technologies Media Development Manager: Chapter 11 - Getting Stylish with CSS Laura VanWinkle Chapter 12 - HTML and Scripting CMhaepdteiar D13eve-lMopakminegn Mt Sulutipmeerdviais Mora:gic CRhaicphtearr d1 4Gra-vIenstegrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Editorial Assistant: Part V - From Web Page to Web Site Amanda Foxworth Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Cartoons: Chapter 18 - Creating a Great User Interface Rich Tennant Pwarwtw V.It -h Teh5et Phawrta ovfe T.ecnosm Chapter 19 - Ten Ways to Exterminate Web Bugs CPharoptdeur c2t0ion- Ten HTML Do’s and Don’ts Part VII - Appendixes Project Coordinator: Appendix A - HTML 4 Tags Dale White Appendix B - HTML Character Codes Appendix C - Glossary Layout and Graphics: InMdiecxhael Kruzil CKheriastt inS hMeectM-ulHlaTnML 4 For Dummies, 4th Edition LiTstif foafn Fyi gMuureths List of Tables Proofreaders: List of Listings Tyler Connoley List of Sidebars John Greenough Susan Moritz TECHBOOKS Production Services Indexer: TECHBOOKS Production Services Special Help Diana Conover HTML 4 for Dummies, 4th Edition Publishing and Ebyd iEtdo rTiaitlt eflo arn Tde Ncahtnanoyloag Pyit tDs ummies ISBN:0764519956 John Wiley & Sons © 2003 (408 pages) Vice President and Executive Group Publisher Whether your goal is to build a simple, text-oriented Web site Richard Swadleyor one loaded with frames, graphics, and animation, this step- by-step book will put you on the right track. Vice President and Publisher Andy Cummings Table of Contents HETMdiLt o4r iFaolr DDiuremcmtoiers, 4th Edition Mary C. Corder Introduction Part I - Meeting HTML in Its Natural Environment Publishing for Consumer Dummies Chapter 1 - The Least You Need to Know about HTML and the Web CVhaicpete Pr r2esid-eHnTtM aLn dat PWuobrlkis ohne trhe Web CDhaiapnteer G3rav-eCsr eSatteinegle Your First HTML Page Part II - Getting Started with HTML Acquisitions Director Chapter 4 - Structuring Your HTML Documents Joyce Pepple Chapter 5 - Linking to Online Resources Chapter 6 - Finding and Using Images Composition Services Chapter 7 - Top Off Your Page with Formatting PVaritc IeI PI r-e Tsaikdienng tH oTfM PLr tood tuhcet iNoenx tS Leervveicles CGhaeprtreyr F8ahe-yHTML Tables Chapter 9 - HTML Frames Director of Composition Services Chapter 10 - HTML Forms Debbie Stailey Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars IntroductHiToMLn 4 for Dummies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 John Wiley & Sons © 2003 (408 pages) Overview Whether your goal is to build a simple, text-oriented Web site or one loaded with frames, graphics, and animation, this step- Welcome to the wbyild-s, twepa cbkoyo,k a wnidll wpuotn ydoeur founl pthoes sriibgihlitt ietrsa icnkh.erent on the World Wide Web, simply referred to as the Web. In this book, we introduce you to the mysteries of the Hypertext Markup Language (HTML), which is used to build Web pages, and initiate you into the still-select, but rapidly growing, community of Table of Contents Web authors. HTML 4 For Dummies, 4th Edition InIft ryooduu'vcteio tnried to build your own Web pages before but found it too forbidding, now you can relax. If you can Pdariat lI a - tMeleeepthinogn He ToMr Lf inind Iytos uNra kteuryasl iEnn tvhiero mnmorennintg, you too can become an HTML author. (No kidding!) Chapter 1 - The Least You Need to Know about HTML and the Web When we first wrote this book, we took a straightforward approach to the basics of authoring documents Chapter 2 - HTML at Work on the Web for the Web. In this edition, for the latest generation of Web page designers, we mix the best of old and Chapter 3 - Creating Your First HTML Page new approaches. As always, we keep the amount of technobabble to a minimum and stick with plain Part II - Getting Started with HTML English whenever possible. Besides plain talk about hypertext, HTML, and the Web, we include lots of Chapter 4 - Structuring Your HTML Documents examples, plus tag-by-tag instructions to help you build your very own Web pages with minimum muss and Chapter 5 - Linking to Online Resources fuss. We also provide more examples about what to do with your Web pages once created, so you can Chapter 6 - Finding and Using Images share them with the world. We also explain the differences between HTML 4 and XHTML, so you can Cdheapctideer 7if yo-u Twoapn Ot ftof Ysotiucrk P wagithe twhieth m Foorsmt watidtienlgy used and popular Web markup language (HTML) or the Plaartte IsItI a -n Tda gkirnega tHeTstM WL teob t mhea Nrkeuxpt Llaenvgeulage (XHTML). Chapter 8 - HTML Tables CWhaep taelrs 9o ha-veH aTM cLo mFrpaamneiosn Web site for this book that contains HTML examples from the chapters in Cuhsaaptbelre 1fo0rm- -H pTlMusL aFo nrummsber of pointers to interesting widgets that you can use to embellish your own documents and astound your friends. Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars About This Book HTML 4 for Dummies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 Think of this bookJ oahsn aW frilieeyn d&l yS, oanpsp ©r o20a0c3h (a40b8l ep aggeusid)e to taking up the tools of HTML and building readable, attractive pages for the Web. Although HTML isn't hard to learn, it does pack a plethora of details. You Whether your goal is to build a simple, text-oriented Web site need to wrestle woitrh o tnhee lsoea ddeedta wilist hs ofrmame ewsh, iglera ypohuic bs,u ailndd y aonuirm Wateiobn p, athgise ss.t eSpo-me sample topics you find in this book includeby-step book will put you on the right track. Designing and building Web pages Table of Contents HTML U4 pFloora Ddiunmg manieds ,p 4utbhl isEhdiintigon Web pages for the world to see Introduction Creating interesting page layouts Part I - Meeting HTML in Its Natural Environment ChaptTere 1sting- aTnhde dLeeabsutg Ygoinug N yeoeudr tWo Kenbo pwa agbeosut HTML and the Web Chapter 2 - HTML at Work on the Web CAhaltphtoeur g3h, a-t fCirrseta gtilnagn cYeo,u br uFiilrdsitn gH TWMeL bP apgaeges may seem to require years of arduous training, advanced Paarets IthI e-t Gice cttainpga bSiltiatiretse,d a wnidt hr itHuTaMl Lablutions in ice-cold streams, take heart: It just ain't so. If you can tell Cshoampteerb o4dy h-oSwtr utoc tdurriivneg aYcoruors sH TtoMwLn D tooc yuomuern htsouse, you can certainly build a Web document that does what you want it to. The purpose of this book isn't to turn you into a rocket scientist (or, for that matter, a Chapter 5 - Linking to Online Resources rocket scientist into a Web site). The purpose is to show you all the design and technical elements you Chapter 6 - Finding and Using Images need to build a good-looking, readable Web page, and to give you the know-how and confidence to do it! Chapter 7 - Top Off Your Page with Formatting Part III - Taking HTML to the Next Level Chapter 8 - HTML Tables Chapter 9 - HTML Frames Chapter 10 - HTML Forms Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars How to Use This Book HTML 4 for Dummies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 This book tells yoJuo hhno wW itloe yu &se S HonTsM ©L 2 040 3to ( 4g08e tp aygoeus)r page up and running on the World Wide Web. We tell you what's involved in designing and building effective Web documents that can bring your ideas and information to the whole online world - if that's what you want to do - and maybe have some high-tech fun communicating them. Whether your goal is to build a simple, text-oriented Web site or one loaded with frames, graphics, and animation, this step- All HTML code apbpy-esatersp ibno moko wnoilsl ppuatc eyodu t yopne t shue crhig hats ttrhaisck:. <head><title>What's in a Title?</title></head>... Table of Contents HWTMhLe 4n yFooru Dtyupmem HieTsM, L4 ttha gEsd iotiro nother related information, be sure to copy the information exactly as you see it between the angle brackets (< and >), including the angle brackets, because that's part Inotfr othdeu cmtioangic that makes HTML work. Other than that, you find out how to marshal and manage the content that makes your pages special, and we tell you exactly what you need to do to mix the Pearlet mI -e Mntese otifn Hg THMTML Lw iinth I ytso uNra otuwrnal w Eonrvkir.onment Chapter 1 - The Least You Need to Know about HTML and the Web The margins of a book don't give us the same room as the vast reaches of cyberspace. Therefore, some long lines of HTML markup, or designations of Web sites (called URLs, for Uniform Chapter 2 - HTML at Work on the Web Resource Locators), may wrap to the next line after we present them here. Remember that your computer shows such wrapped lines as a single line of HTML, or as a single URL - so if you're Chapter 3 - Creating Your First HTML Page typing that hunk of code, keep it as one line. Don't insert a hard return if you see one of these wrapped lines. We clue you in that the HTML markup is supposed to be all one line by breaking the Part II - Getting Started with HTML line at a slash, or other appropriate character, (to imply 'but wait, there's more!') and slightly indenting the overage, as in the following silly example: Chapter 4 - Structuring Your HTML Documents Chhatpttper: /5/ww-wL.inikninfgo tcoa Odnalibnre aR.etsoruarncessylvania.com/nexus/plexus/lexus/ praxis/okay/this/is/a/make-believe/URL/but/some/real/ ones/are/SERIOUSLY/long.html Chapter 6 - Finding and Using Images Chapter 7 - Top Off Your Page with Formatting Tip HTML doesn't care if you type tag text in uppercase, lowercase, or both (except for character entities, also known as character codes, which must be typed exactly as indicated in Appendix B Part III - Taking HTML to the Next Level of this book). To make your own work look like ours as much as possible, enter all HTML tag text in lowercase only. Those of you who own previous editions of the book may see this as a complete Chapter 8 - HTML Tables reversal of earlier instructions. That it is! But the keepers of the eternal and ever-magnanimous standard of HTML, the World Wide Web Consortium (W3C), have changed the rules of this game, Chapter 9 - HTML Frames so we changed our instructions to follow their lead. We may not make the rules, but we do know how to play the game! Chapter 10 - HTML Forms Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars Three Presumptuous Assumptions HTML 4 for Dummies, 4th Edition by Ed Tittel and Natanya Pitts ISBN:0764519956 They say that maJkoinhng Wasilseuym &p Stioonnss ©m 2a00k3e (s4 0a8 pfoagoel so)ut of the person who makes them and the person who is subject to those assumptions (and just who are They, anyway? We assume we know, but . . . never mind). Whether your goal is to build a simple, text-oriented Web site Even so, practicaolirty o dneem loaandedds wthiatht wfream meask, eg raa pfheiwcs a, sasnudm apntimioantsi oanb, othuits y sotue,p o-ur gentle reader: by-step book will put you on the right track. You can turn your computer on and off. Table oYfo Cu oknntoewn thsow to use a mouse and a keyboard. HTML 4 For Dummies, 4th Edition You want to build your own Web pages for fun, for profit, or for your job. Introduction PIanr ta Id -d iMtioenet, iwnge HaTsMsuLm ine Iytos uN aatlrueraald Ey nhvairvoen am wenotrking connection to the Internet, and one of the many fine CWhaepbte br r1ows-erTsh aev Laeilaasbt leYo buy Nheoeodk t,o b Ky ncorwoo akb, oourt bHyT dMoLw annlod atdh ef rWomeb that same Internet. You don’t need to be Cah amptaesrt e2r lo-giHciTaMnL o ar ta W woizrka rodn inth teh eW aerbcane arts of programming, nor do you need a Ph.D. in computer Cshcaipetnecr e3. Yo-u Cdroena’tti negv eYno unre Feirds ta HdTeMtaLi lPeadg seense of what’s going on in the innards of your computer to deal Pwaritth I Ith -e G metatitnegri aSlt ainr ttehdis w biotho kH.TML Chapter 4 - Structuring Your HTML Documents If you can write a sentence and know the difference between a heading and a paragraph, you’re better off Chapter 5 - Linking to Online Resources than nine out of ten playground bullies — and you can build and publish your own documents on the Web. Chapter 6 - Finding and Using Images If you have an active imagination and the ability to communicate what’s important to you, even better — Chapter 7 - Top Off Your Page with Formatting you’ve already mastered the key ingredients necessary to build useful, attractive Web pages. The rest Part III - Taking HTML to the Next Level consists of details, and we help you with those! Chapter 8 - HTML Tables Chapter 9 - HTML Frames Chapter 10 - HTML Forms Part IV - Extending HTML with Other Technologies Chapter 11 - Getting Stylish with CSS Chapter 12 - HTML and Scripting Chapter 13 - Making Multimedia Magic Chapter 14 - Integrating a Database into Your HTML Chapter 15 - How HTML Relates to Other Markup Languages Part V - From Web Page to Web Site Chapter 16 - Creating an HTML Toolbox Chapter 17 - Setting Up Your Online Presence Chapter 18 - Creating a Great User Interface Part VI - The Part of Tens Chapter 19 - Ten Ways to Exterminate Web Bugs Chapter 20 - Ten HTML Do’s and Don’ts Part VII - Appendixes Appendix A - HTML 4 Tags Appendix B - HTML Character Codes Appendix C - Glossary Index Cheat Sheet - HTML 4 For Dummies, 4th Edition List of Figures List of Tables List of Listings List of Sidebars