CherylD.
WiseFoundationsofMicrosoftExpressionWebTheBasicsandBeyondFoundationsofMicrosoftExpressionWeb:TheBasicsandBeyondCopyright2007byCherylD.
WiseAllrightsreserved.
Nopartofthisworkmaybereproducedortransmittedinanyformorbyanymeans,electronicormechanical,includingphotocopying,recording,orbyanyinformationstorageorretrievalsystem,withoutthepriorwrittenpermissionofthecopyrightownerandthepublisher.
ISBN-13(pbk):978-1-59059-805-4ISBN-10(pbk):1-59059-805-9PrintedandboundintheUnitedStatesofAmerica987654321Trademarkednamesmayappearinthisbook.
Ratherthanuseatrademarksymbolwitheveryoccurrenceofatrademarkedname,weusethenamesonlyinaneditorialfashionandtothebenefitofthetrademarkowner,withnointentionofinfringementofthetrademark.
LeadEditors:ChrisMills,MatthewMoodieTechnicalReviewer:KathleenAndersonEditorialBoard:SteveAnglin,EwanBuckingham,GaryCornell,JasonGilmore,JonathanGennick,JonathanHassell,JamesHuddleston,ChrisMills,MatthewMoodie,JeffPepper,PaulSarknas,DominicShakeshaft,JimSumser,MattWadeProjectManager:BethChristmasCopyEditManager:NicoleFloresCopyEditors:HeatherLang,KimWimpsettAssistantProductionDirector:KariBrooks-CoponyProductionEditor:KatieStenceCompositor:MollySharpProofreaders:LoriBring,LindaSeifertIndexer:TomaMulliganArtist:AprilMilneCoverDesigner:KurtKramesManufacturingDirector:TomDebolskiDistributedtothebooktradeworldwidebySpringer-VerlagNewYork,Inc.
,233SpringStreet,6thFloor,NewYork,NY10013.
Phone1-800-SPRINGER,fax201-348-4505,e-mailorders-ny@springer-sbm.
com,orvisithttp://www.
springeronline.
com.
Forinformationontranslations,pleasecontactApressdirectlyat2560NinthStreet,Suite219,Berkeley,CA94710.
Phone510-549-5930,fax510-549-5939,e-mailinfo@apress.
com,orvisithttp://www.
apress.
com.
Theinformationinthisbookisdistributedonan"asis"basis,withoutwarranty.
Althougheveryprecau-tionhasbeentakeninthepreparationofthiswork,neithertheauthor(s)norApressshallhaveanyliabilitytoanypersonorentitywithrespecttoanylossordamagecausedorallegedtobecauseddirectlyorindirectlybytheinformationcontainedinthiswork.
Thesourcecodeforthisbookisavailabletoreadersathttp://www.
apress.
comintheSourceCode/Downloadsection.
Youwillneedtoanswerquestionspertainingtothisbookinordertosuccessfullydownloadthecode.
ThisbookisdedicatedtomyhusbandSteveandourtwochildren,whoweresupportiveevenwhenwritingthisbookinterferedwithourfamilylife.
ContentsAbouttheAuthorxiiiAbouttheTechnicalReviewer.
xvAcknowledgmentsxviiIntroduction.
xixCHAPTER1BeforeYouBegin.
1WhyAreYouCreatingaWebsite1TypicalWebsiteObjectives.
2PersonalSites.
2BusinessSites2AttractingtheSiteVisitorsYouWant.
3PictureYourTargetVisitor.
3ContentEqualsCredibility4KeepYourListSimple6PointstoPonder.
6ChoosingaDomainName6PersonalSite.
7BusinessSite8WebHosting8HostingUsingaSubdomainName9CommercialWebHosting10AWordAboutWebServers.
11WhattoLookforinaWebHost.
11SimpleRulesforAllWebsites12InstallingExpressionWeb13ChoosingYourInstallType13TakingYourFirstLookatExpressionWeb.
16Summary23viiCHAPTER2TakingYourFirstSteps25CreatingaLocalWebsite25FileMenu.
25EditMenu39ViewMenu42InsertMenu.
44FormatMenu45Summary46CHAPTER3StartingOffRight:ConfiguringExpressionWeb47UsingtheToolsMenu47GeneralToolsSection48ReportsSection48OptimizeHTMLSelection49ProgramManagement50PreferencesSection51UsingtheSiteMenu78Folders.
78RemoteWebSite79Reports79Hyperlinks79RecalculateHyperlinks79SiteSettings79Summary81CHAPTER4UsingSemantic,StructuredHTMLtoCreateWebPages.
.
.
83RequiredElements83StructuringYourWebPage.
84Lists88Tables.
91OtherHTMLElementsfromtheDrop-DownList96Hyperlinks97TheImportanceofHiddenElements101Summary106CONTENTSviiiCHAPTER5EssentialCSS:WhatYouNeedtoKnow107WhatIsCSS107WhyUseStylesheets108TypesofStyles111CforCascade.
113ClassandID120and121SettingPropertiesandValues122PageElements122MarginandPadding123Color.
126BackgroundProperties129HyperlinksandPseudo-Classes132ApplyingaDeclarationtoaGroupofSelectors135Fonts139BoxProperties139ChangingtheDocumentFlowwithCSS139Floats139PositionAbsolute140PositionRelative.
142Summary145CHAPTER6UsingExpressionWebtoCreateBasicCSS147CreatingNewStyles147UsingtheBlockCategory.
151SettingtheBackground154CreatingaBorder158CreatingaBox163CreatingTables167Summary170CHAPTER7CSSPositioningUsingExpressionWebStyleTools.
171CreatingtheInitialPage.
172WorkingwiththePositioningCategory174WorkingwiththeLayoutCategory184Lists192BuildingaPageLayout.
203Summary206CONTENTSixCHAPTER8BrandingYourWebsite207ChoosingaColorScheme207ComplementaryColorSchemes208AnalogousColorSchemes208MonochromaticColorSchemes208ChoosingImagesforYourSite208Graphics209Photos209StockPhotos.
209ImageFormats209AddingImagestoYourWebPages210EstablishingYourLookandFeel217MaintainingYourBrandingThroughoutYourSite230Summary231CHAPTER9DynamicWebTemplates233DWTOverview233WhatDoesaDWTDo233CreatingtheDWT.
234AddingEditableRegions.
236EditableRegionsintheSection.
238AttachingDWTstoYourWebPages241AttachingaDWTtoanExistingPage.
245PreparinganExistingPageforaDWT245ApplyingaDWTtoaPagewithContent247MovingContentBetweenEditableRegions.
249AftertheTemplateHasBeenApplied.
250EditingaDWT.
251DetachingaPagefromaDWT252ChangingtheAttachedDWT253Summary255CHAPTER10Forms257RequiredElementsforaForm.
257ProcessingForms270SettingFormProperties270ASPSendwithCDO273PHPSendMail274ASP.
NET2.
0FormControls275Summary286CONTENTSxCHAPTER11LegalandUsabilityIssues287LegalIssues287Accessibility288Copyright.
290Privacy291Licensing.
292Usability.
292UsabilityTesting293WhereCanYouFindTesters293UsingExpressionReports293HyperlinkReports293SiteReports295Summary296CHAPTER12MasterPages.
297CreatingaMasterPage298NestingMasterPages.
308Summary312CHAPTER13BeyondtheBasicsinCSSandScripting313AlternativeStylesheetTypes313ApplyingDifferentMediaTypes314PrintStylesheets316ValidatingyourForms.
320ASP.
NETFormValidationControls.
320ASP.
NETValidationControlsTagProperties.
321HTMLFormsValidation.
335PasswordProtectingaFolder337Creatingaweb.
configFile337Summary344APPENDIXExtendingExpressionWebwithAdd-Ons347AddingPayPalButtons347AddingFormTools.
349KeyboardShortcuts350INDEX355CONTENTSxiAbouttheAuthorCHERYLD.
WISE,founderanddirectorofWiserWays,LLC,hasbeencreatingwebsitessince1994.
AmemberoftheGuildofAccessibleWebDesignersandaWorldOrganizationofWebmastersCertifiedProfessionalWebDevel-oper,CherylfirstreceivedtheMostValuableProfessional(MVP)awardfromMicrosoftforFrontPagein2003andreceivedtheawardeveryyearuntil2007.
In2007,Cheryl'sMVPawardcompetencyfromMicrosoftwaschangedfromFrontPagetoExpressionWeb.
Sheteachesotherstocreatestandardscompliant–accessiblewebsitesatStarttoWeb(http://starttoweb.
com)andhasbeendoingotheronlinetrainingsince2004.
SheisalsotheauthorofIntroductiontoWebDesignwithFrontPage2003(WiserWays:Houston,2005)andistheownerofoneofthebestExpressionWebresourcesitesontheWeb—http://by-expression.
com.
Youcancontactherthere.
xiiiAbouttheTechnicalReviewerKATHLEENANDERSONisaMicrosoftMVPforFrontPage.
ShewasthefirstwomantobehonoredwiththeFrontPageMVPawardandisveryhappythatsheisnolongertheonlyone.
KathleenhasbeenusingFrontPagefortenyearsandisknownasthe"FrontPageDatabaseWizardQueen"byherfellowFrontPageMVPs.
ShechairstheStateofConnecticut'sCommitteeonWebSiteAccessibility.
ShelovestoteachpeoplehowtomakeaccessiblewebsiteswithFrontPageandislookingforwardtodoingthesamewithExpressionWeb.
xvAcknowledgmentsI'dliketoacknowledgeTinaClarke,afellowMicrosoftFrontPageMVPandprolifice-bookwriterwhoencouragedmetowritethisbookandnaggedmetocompleteit.
Tina'ssupportandconstructivecriticismhelpedmakethisbookpossible.
ThanksalsogotoPatGeary,EchoSwinford,andSueForresterfortheirencouragementandfeedback;andtomyeditorsatApress,whowerepatientwhenmyworkflowdidn'tmatchtheirstandardeditorialprocess.
xviiIntroductionThisbookisaboutmorethanjustMicrosoftExpressionWeb.
Formostpeople,awebeditorisameanstoanend—thatendbeingawebsitethatestablishesawebpresence.
MygoalinwritingthisbookisforyoutobeabletouseExpressionWebtodomorethanjustestablishapresence:myhopeisthatyouwillbeabletouseExpressionWebtocreateawebsitethatful-fillsthesiteowner'sgoals.
ThedaysofbeingabletocreateawebsitethatonlyworksinonedominantwebbrowseroronWindows-basedcomputersaregone.
Today,awebsitemustlookgoodandfunctionprop-erlyinavarietyofwebbrowsersrunningonWindowsandMacs.
Inaddition,manypeopleareusingotherdevicessuchasgameconsoles,PDAs,andcellphonestoaccesstheInternet.
Yourwebsitemustfunctionineachofthese.
Thisiswhattheterm"crossbrowser"means.
Webstan-dardsarewhatmakeitpossibleforyourcross-browserwebsitetoworkonthewidevarietyofdevicesandbrowsersoutthere.
WhatIsExpressionWebExpressionWebisanewwebeditorfromMicrosoftbuiltwithwebstandardsandcross-browseroutputasitsprimaryfocuses.
Unlikeolderwebeditors,ExpressionWebwasnotcompelledtoworkaroundthelimitationsofearlierversionswithproprietarybrowseroutputandbloatedcode.
Instead,Microsofthascreatedamodernwebeditorthatmeetstheneedsoftoday'sWeb.
Web2.
0sitesarefrequentlyupdatedandstandardscompliant,andemployuser-friendlyinter-facesthatprovideaclear,well-organized,andvisuallyappealingsite.
ExpressionWebwasdesignedtocreatestandards-complaintwebsitesoutofthebox,whileatthesametimeprovidingtoolstohelpeffectivelymanagethelookandfeelofyourwebsite.
CascadingStyleSheets(CSS),DynamicWebTemplates(DWT),andASP.
NETMasterPagesarethefoundationforcreatingandmanagingyourwebsiteinExpressionWeb.
ExpressionWebassistsyouincreatingstandards-complaintsitesbywritingthecodetothespecificationofyourchoice,butitwillnotrewriteyourcodeifyouchoosetousebrowser-specificcode.
WhyThisBookManypeoplewhethertheyarenewtocreatingwebsitesorstartedcreatingtheminthe1990slackafoundationinwebstandardsandCSS.
SinceExpressionWebisfocusedonwebstandardsandcreatingcross-browserwebsites,youmustunderstandthebasicsofstructuredHTMLandCSStouseitsfullpotential.
TheearlychaptersofthisbookaimtogiveyouthefoundationyouneedtounderstandandusethetoolsinExpressionWebtocreateandapplyCSS.
Learninghowtouseawebeditorwithoutunderstandinghowwebsitesworkwillleaveyouwithaless-than-satisfyingwebsite.
Inthisbook,IexplainnotjustthehowtousefeaturesinExpressionWebbutwhyyoushouldorshouldnotusesomeofthosefeatures.
Alongtheway,topicssuchasaccessibilityandusabilitywillbeintroducedandexplored.
xixOnceyouhavethatfoundation,thebookmovesontomoreadvancedtopicsofcreatingrobustpagelayoutsthatworkinavarietyofwebbrowsers,handlinglegacybrowserissues,andcreatingcontactformsBythetimeyoureachtheendofthebook,validatingyourformsandsendingtheresultsbye-mail,creatingprintstylesheets,andpasswordprotectingasec-tionofyoursitewillallbewithinyourcapabilities.
WhatIsNotinThisBookThisbookisnotamanual.
TocovereverypossiblethingyoucandowithExpressionWebwouldrequireamuchlongerbookthanthisone.
WhenyoufindafeatureinExpressionWebinthisbook,itwillbeforareal-worldpurpose.
WhoIsThisBookForThisbookisforthewebdesigner,notforthewebdeveloper.
Whilethisbookdoescontainsampleform–to–e-mailscriptsinthreeserver-sidelanguagesandsimpleformfieldvalidationandpasswordprotectionscripts,thisbookdoesnotgoin-depthontheASP.
NETcontrolsintheToolbox.
Instead,thisbookfocusesonthedesignandmaintenanceofwebsites.
MicrosoftExpressionWebisatoolthatwillmakesomeaspectsofcreatingawebsiteeasier—itisnotasubstituteforunderstandinghowwebsiteswork.
Withthisbook,youwilllearnboththetoolsandthefundamentalsofcreatingwebsites.
HowIsThisBookStructuredThebestwaytolearntocreateawebsiteusinganyprogramistoactuallyuseit,whichiswhyeachchapterincludesexercisesdesignedtoreinforcethetopicsitexplains.
Irecom-mendworkingthrougheachoftheseexercisesforhands-onexperience.
Workingexamplesofthecompletedexercisescanbeviewedathttp://foundationsofexpressionweb.
com,andthecompletesourcecodecanalsobeobtainedfromhttp://www.
apress.
com/intheSourceCode/Downloadsection.
Sidebarswillprovideyouwithexplanationsofconceptsandbestpracticetipsforcreatingyourwebsite.
WhereCanIFindMoreInformationExpressionWebisanewprogram;asaresult,featuresandbugsarestillbeingdiscovered.
Ifyouhavequestionsaboutsomethingyoufindordon'tfindintheprogram,thereareafewplacesIrec-ommendchecking:mysitehttp://by-expression.
comandtheMicrosoftPublicNewsgroup/Forum(news://msnews.
microsoft.
com/microsoft.
public.
expression.
webdesignerinOutlookExpressorWindowsMail).
SinceURLsmaychange,alistoflinkstootherplacesontheWebwithExpres-sionWebresourceswillbemaintainedathttp://foundationsofexpressionweb.
com/links.
INTRODUCTIONxx
如今我们无论线上还是线下选择商品的时候是不是习惯问问是不是有优惠活动,如果有的话会加速购买欲望。同样的,如果我们有准备选择Vultr商家云服务器的时候,也会问问是不是有Vultr优惠码或者优惠券这类。确实,目前Vultr商家有一些时候会有针对新注册用户赠送一定的优惠券活动。那就定期抽点时间在这篇文章中专门整理最新可用Vultr优惠码和商家促销活动。不过需要令我们老用户失望的,至少近五年我们看到Vu...
青云互联怎么样?青云互联是一家成立于2020年6月的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,目前提供有美国免费主机、香港主机、香港服务器、美国云服务器,让您的网站高速、稳定运行。美国cn2弹性云主机限时8折起,可选1-20个IP,仅15元/月起,附8折优惠码使用!点击进入:青云互联官方网站地址青云互联优惠码:八折优惠码:ltY8sHMh (续费同价)青云互联活动方案:美国洛杉矶...
美得云成立于2021年,是一家云产品管理服务商(cloud)专业提供云计算服务、DDOS防护、网络安全服务、国内海外数据中心托管租用等业务、20000+用户的选择,43800+小时稳定运行香港特价将军澳CTG+CN2云服务器、采用高端CPU 优质CN2路线 SDD硬盘。香港CTG+CN22核2G3M20G数据盘25元点击购买香港CTG+CN22核2G5M30G数据盘39元点击购买香港CTG+CN...
windowsmail为你推荐
汇通物流汇通快递好吗网红名字被抢注我想问这个网红 名字叫什么 讲一下谢谢了地陷裂口造成地陷都有哪些原因?原代码什么叫源代码,源代码有什么作用月神谭求男变女类的变身小说www.yahoo.com.hk香港有什么有名的娱乐门户网站吗?www.622hh.comwww.710av.com怎么不可以看了同一服务器网站服务器建设:一个服务器有多个网站该如何设置?haokandianyingwang谁有好看电影网站啊、要无毒播放速度快的、在线等www.zjs.com.cn中通快递投诉网站网址是什么?
www二级域名 cn域名个人注册 电信测速器 主机点评 l5639 京东云擎 个人空间申请 linux空间 数字域名 bgp双线 Updog 环聊 空间首页登陆 服务器防火墙 iki 镇江高防 阵亡将士纪念日 网站加速 hostease hdroad 更多