www.it-ebooks.info P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 Creating Web Sites Bible Second Edition www.it-ebooks.info i P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 www.it-ebooks.info ii P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 Creating Web Sites Bible Second Edition David A. Crowder and Andrew Bailey WileyPublishing,Inc. www.it-ebooks.info iii P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 CreatingWebSitesBible Publishedby WileyPublishing,Inc. 10475CrosspointBoulevard Indianapolis,IN46256 www.wiley.com Copyright(cid:1)c 2004byWileyPublishing,Inc.,Indianapolis,Indiana PublishedbyWileyPublishing,Inc.,Indianapolis,Indiana PublishedsimultaneouslyinCanada eISBN:0-7645-7944-4 ManufacturedintheUnitedStatesofAmerica 10987654321 XX/XX/XX/XX/XX Nopartofthispublicationmaybereproduced,storedinaretrievalsystemortransmittedinanyform orbyanymeans,electronic,mechanical,photocopying,recording,scanningorotherwise,exceptas permittedunderSections107or108ofthe1976UnitedStatesCopyrightAct,withouteithertheprior writtenpermissionofthePublisher,orauthorizationthroughpaymentoftheappropriateper-copyfee totheCopyrightClearanceCenter,222RosewoodDrive,Danvers,MA01923,(978)750-8400,fax(978) 646-8700.RequeststothePublisherforpermissionshouldbeaddressedtotheLegalDepartment,Wiley Publishing,Inc.,10475CrosspointBlvd.,Indianapolis,IN46256,(317)572-3447,fax(317)572-4355, E-Mail:[email protected] LIMITOFLIABILITY/DISCLAIMEROFWARRANTY:THEPUBLISHERANDTHEAUTHORMAKE NOREPRESENTATIONSORWARRANTIESWITHRESPECTTOTHEACCURACYORCOMPLETE- NESSOFTHECONTENTSOFTHISWORKANDSPECIFICALLYDISCLAIMALLWARRANTIES, INCLUDINGWITHOUTLIMITATIONWARRANTIESOFFITNESSFORAPARTICULARPURPOSE. NOWARRANTYMAYBECREATEDOREXTENDEDBYSALESORPROMOTIONALMATERIALS. THEADVICEANDSTRATEGIESCONTAINEDHEREINMAYNOTBESUITABLEFOREVERYSIT- UATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONALASSISTANCEISREQUIRED,THESERVICESOFACOMPETENTPROFESSIONAL PERSONSHOULDBESOUGHT.NEITHERTHEPUBLISHERNORTHEAUTHORSHALLBELI- ABLEFORDAMAGESARISINGHEREFROM.THEFACTTHATANORGANIZATIONORWEBSITE ISREFERREDTOINTHISWORKASACITATIONAND/ORAPOTENTIALSOURCEOFFURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS ITMAYMAKE.FURTHER,READERSSHOULDBEAWARETHATINTERNETWEBSITESLISTED INTHISWORKMAYHAVECHANGEDORDISAPPEAREDBETWEENWHENTHISWORKWAS WRITTENANDWHENITISREAD. Forgeneralinformationonourotherproductsandservicesortoobtaintechnicalsupport,please contactourCustomerCareDepartmentwithintheU.S.at(800)762-2974,outsidetheU.S.at(317) 572-3993orfax(317)572-4002. Wileyalsopublishesitsbooksinavarietyofelectronicformats.Somecontentthatappearsinprintmay notbeavailableinelectronicbooks. LibraryofCongressCataloging-in-PublicationData Crowder,David. CreatingWebSitesBible/DavidA.CrowderandAndrewBailey. p.cm. Includesbibliographicalreferencesandindex. ISBN0-7645-7498-1(pbk.) 1.Websitedevelopment. 2.Websites–Design. I.Bailey,Andrew1968– II.Title. TK5105.8888.C76 2004 006.7–dc22 2004017335 Trademarks:Wiley,theWileylogo,andrelatedtradedressaretrademarksorregisteredtrademarksof JohnWiley&Sons,Inc.and/oritsaffiliates,intheUnitedStatesandothercountries,andmaynotbe usedwithoutwrittenpermission.Allothertrademarksarethepropertyoftheirrespectiveowners. WileyPublishing,Inc.,isnotassociatedwithanyproductorvendormentionedinthisbook. www.it-ebooks.info iv P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 About the Authors DavidA.Crowderhasauthoredorcoauthoredmorethan20books,including popularbestsellerssuchasBuildingaWebSiteForDummiesandCliffsNotesGetting ontheInternet.Hewassellinghypertextsystemsbackinthedayswhenyouhadto explaintopeoplewhatthewordmeant.Hehasbeeninvolvedintheonline communitysinceitsinceptionandistherecipientofseveralawardsforhiswork, includingtheNetGuideMagazineGoldSiteAward.Whenheisnotwriting,hespends histimewithhiswifeAngela,wanderingthroughvillagesintheAndesorfrolickingin theCaribbeansurf. AndrewBaileywasborninEnglandwherehestudiedNaturalSciencesatCambridge University.HeworkedforCrayResearchasasystemsanalystfrom1989to1992. ThenhemovedtoColombia,SouthAmerica.AtthepresentmomentheistheHead ofInvestigationinComputerSciencesattheSanBuenaventuraUniversityinMedell´ın wherehealsoteachesDistributedComputingandtheDesignofWebApplications. HeownsHazloRealidad.com,acompanydedicatedtothedesignandhostingofWeb sitesandthedevelopmentofcustom-builtsoftwarebasedonopenstandardsand freelylicensedoropensourcesoftware.HazloRealidadisSpanishfor“makeitreal,” which,accordingtoAndrew,“referstomakingyourdreamscometrue,wellatleast theonesrelatedtosoftware”.Tocontacthimsendanemailtoandybailey@ hazlorealidad.com. About the Contributors BudSmithisaWebconsultant,teacher,andwriterwholearnedhistradeinSilicon ValleyandisnowlivinginLondon,England.Hehaswrittenmorethanadozenbooks onWebsitedesignandothercomputingtopics,withonebestsellerplacingamong theTop10computerbooksinannualsalesrecently.Amonghisotherwork,Bud teachesonlineclassesonWebdesign,reviewinghisstudents’Websitesasthey progress. DougSahlinisanauthor,graphicdesigner,andWebsitedesignerlivinginLakeland, Florida.Heistheauthorof14booksonimageediting,Webdesign,andoffice applications.Hisbest-sellingbookrankedashighas22ndonAmazon’sTop50 ComputerBookslist.TheauthorusesmultipleapplicationstodesignWebsitesthat featureanimation,video,andimages. www.it-ebooks.info v P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 Credits ExecutiveEditor VicePresident& ChrisWebb ExecutiveGroupPublisher RichardSwadley ProductionEditor FeliciaRobinson VicePresidentandPublisher JosephB.Wikert DevelopmentEditor SharonNash ExecutiveEditorialDirector MaryBednarek CopyEditor MichaelKoch ProofreadingandIndexing TECHBOOKSProductionServices EditorialManager KathrynMalm www.it-ebooks.info vi P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 Formyparents,withloveandgratitude. www.it-ebooks.info vii P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 www.it-ebooks.info viii P1:FMK WY040-FM WY040/Crowder WY040-Crowder.cls September24,2004 10:48 Contents at a Glance ............................................... Preface............................................................................ix Acknowledgments................................................................xiii Part I: The Basics of Building Web Pages and Sites................1 Chapter1: PlanningYourWebPages...................................................3 Chapter2: PromotingYourSite.......................................................17 Chapter3: BasicHTMLBuildingBlocks...............................................37 Chapter4: OrganizingYourSite.......................................................65 Chapter5: PuttingItontheWeb......................................................79 Part II: Enhancing Web Pages with Fonts, Images, and Color ................................................ 109 Chapter6: GettingFancywithText...................................................111 Chapter7: FindingImages...........................................................137 Chapter8: BlendingImagesintoYourPages.........................................145 Chapter9: CreatingandEnhancingImages...........................................173 Chapter10: AddingColorThroughoutYourSite.....................................195 Part III: Designing Web Layouts.................................209 Chapter11: HarnessingthePowerofTables.........................................211 Chapter12: OrganizingYourSitewithFrames........................................241 Chapter13: StylingWebPageswithCascadingStyleSheets..........................269 Chapter14: PositioningElementswithDIVs..........................................315 Part IV: Adding Interactivity With Flash, Forms, and Other Tools.........................................329 Chapter15: GettingInputwithForms................................................331 Chapter16: MakingDynamicPageswithJavaScript..................................365 Chapter17: NavigatingYourWebSite................................................407 Chapter18: AddingDynamicPageElementswithDHTML............................429 Chapter19: AnimatingwithMacromediaFlash.......................................449 Chapter20: AddingMultimediaandOtherObjects...................................487 Chapter21: Blogging.................................................................507 Part V: Cashing In on E-Commerce..............................527 Chapter22: SettingUpYourStore....................................................529 Chapter23: SellingoneBay..........................................................549 www.it-ebooks.info xv
Description: