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
Virmach 商家算是比较久且一直在低价便宜VPS方案中玩的不亦乐乎的商家,有很多同时期的商家纷纷关闭转让,也有的转型到中高端用户。而前一段时间也有分享过一次Virmach商家推出所谓的一次性便宜VPS主机,比如很低的价格半年时间,时间到服务器也就关闭。这不今天又看到商家有提供这样的产品。这次的活动产品包括圣何塞和水牛城两个机房,为期六个月,一次性付费用完将会取消,就这么特别的产品,适合短期玩玩...
Friendhosting发布了今年黑色星期五促销活动,针对全场VDS主机提供45折优惠码,虚拟主机4折,老用户续费可获9折加送1个月使用时长,优惠后VDS最低仅€14.53/年起,商家支持PayPal、信用卡、支付宝等付款方式。这是一家成立于2009年的老牌保加利亚主机商,提供的产品包括虚拟主机、VPS/VDS和独立服务器租用等,数据中心可选美国、保加利亚、乌克兰、荷兰、拉脱维亚、捷克、瑞士和波...
pacificrack又追加了3款特价便宜vps搞促销,而且是直接7折优惠(一次性),低至年付7.2美元。这是本月第3波便宜vps了。熟悉pacificrack的知道机房是QN的洛杉矶,接入1Gbps带宽,KVM虚拟,纯SSD RAID10,自带一个IPv4。官方网站:https://pacificrack.com支持PayPal、支付宝等方式付款7折秒杀优惠码:R3UWUYF01T内存CPUSS...
windowsmail为你推荐
云爆发养兵千日用兵千日这个说法对不对敬汉卿姓名被抢注12306身份证名字被注册怎么办sherylsandbergLean In是一个怎样的组织关键字数据库:什么是关键字?陈嘉垣陈嘉桓是谁?psbc.com怎样登录wap.psbc.comwww.ijinshan.com在电脑看港台电视台那个网站最好而又不用钱速度又快dadi.tv海信电视机上出现英文tvservice是什么意思?www.qqq147.comhttp://www.qq59ddd.com网站找不到了怎么办啊
免费域名 域名查询系统 上海vps 最新代理服务器ip 罗马假日广场 阿里云邮箱登陆首页 香港主机 rak机房 php主机 抢票工具 tightvnc 私有云存储 建站代码 免费smtp服务器 帽子云 天翼云盘 web服务器安全 如何注册阿里云邮箱 登陆空间 电信网络测速器 更多