资源描述:
《HTML5 And CSS3 Visual Quick01》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、1WebPageBuildingBlocksWhileWebpageshavebecomeincreasinglycomplex,theirunderlyingstructureremainsInThisChapterremarkablysimple.Thefirstthingyoushouldknowisthatit’simpossibletocreateABasicHTMLPage3aWebpagewithoutHTML.Asyouwilllearn,SemanticHTML:MarkupwithMeaning6HTMLhousesyourconte
2、ntanddescribesMarkup:Elements,Attributes,andValues13itsmeaning.Inturn,WebbrowsersrenderyourHTML-encasedcontentfor users.AWebPage’sTextContent16AWebpageisprimarilymadeupofthreeLinks,Images,andOtherNon-Textcomponents:Content17nTextcontent:ThebaretextthatFileNames19appearsonthepaget
3、oinformvisitorsURLs20aboutyourbusiness,familyvacation,KeyTakeaways24products,orwhateverthefocusofyourpagemaybe.nReferencestootherfiles:Theseloaditemssuchasimages,audio,video,andSVGfiles,andtheylinktootherHTMLpagesandassets,aswellastostylesheets(whichcontrolyourpage’slayout)andJav
4、aScriptfiles(whichaddbehaviortoyourpage).nMarkup:TheHTMLelementsthatdescribeyourtextcontentandmakethereferenceswork.(TheminHTMLstandsformarkup.)It’simportanttonotethateachoftheseaboutthecontent’sprimarylanguagecomponentsinaWebpageismadeup(English,French,andsoon),characterexclusiv
5、elyoftext.Thismeansthatpagesencoding(typicallyUTF-8),andmore.aresavedintext-onlyformatandcanbeThischapterwillwalkyouthroughabasicviewedonpracticallyanybrowseronanyHTMLpage,discusssomebestpractices,platform,whetherdesktop,mobile,tablet,andexplaineachofthethreeimportantorotherwise.
6、Itguaranteestheuniversal-components.ityoftheWeb.Apagemaylookdiffer-Note:Asmentionedintheintroduction,entwhenviewedononedeviceversusIuseHTMLtorefertothelanguageinanother,butthat’sOK.Theimportantthinggeneral.ForthoseinstancesinwhichI’masafirststepistomakecontentacces-highlightingsp
7、ecialcharacteristicsuniquesibletoallusers,andHTMLaffordsthat.toaversionofthelanguage,IwillusetheInadditiontothethreecomponentsthataindividualname.Forexample,“HTML5Webpageisprimarilymadeupof,apageintroducesseveralnewelementsandalsoincludesHTMLthatprovidesinforma-redefinesorelimina
8、tesothersthatprevi-tionaboutthepageitsel