欢迎来到天天文库
浏览记录
ID:40338298
大小:528.00 KB
页数:34页
时间:2019-07-31
《网页制作教程 赵丰年 1_英文 chap2-text&hypertext》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Chapter2TextandHypertext1ObjectivesTellthedifferencebetweenblock-levelelementsandinlineelements.Useheadingsandparagraphsproperly.Tellthedifferencebetweenlogicalelementsandpresentationalelements.Befamiliarwiththecommonlyusedlogicalelementssuchas.Knowthediffere
2、ncebetweendivandspanandusethemproperly.2ObjectivesUselistsproperly.Befamiliarwiththecommonlyusedpresentationalelementssuchas,knowtheirusesandlimitations.TellthedifferencebetweenabsoluteURLsandrelativeURLs.Uselinksproperly.32categoriesoftextelementsInlinee
3、lementsoccurintheflowoftextanddonotcauselinebreaksbydefault.Examplesinclude:,.Block-levelelementshaveadefaultpresentationthatstartsanewlineandtendstostackuplikeblocksinthenormalflowofthedocument.Examplesinclude:,.Blockelementsmakeupthemaincomponentsofd4、ocumentstructure.4HeadingsHeadingsareusedtointroduceideasorsectionsoftext.HTMLdefines6levelsheadings,fromh1toh6,inorderfrommosttoleastimportant.Note:HTMLsyntaxrequiresthatheadingsappearinorder(forexample,anh2shouldnotprecedeanh1)forproperdocumentstructure.Onlyuseheadings5、forheadings,notforpresentationpurposes.5ParagraphsParagraphsarethemostrudimentaryelementsofatextdocument.Theyareindicatedbythepelement.Paragraphsmycontaintextandinlineelements,buttheymaynotcontainotherblockelements,includingotherparagraphs.Note:Onlyuseparagraphsforparagr6、aphs,notforpresentationpurposes.6TextalignmentTheattributealigncanbeusedinmanytextelementstoadjustthehorizontalalignmentoftextwithinblockelements.Forexample:Heading1willmakethetextalignedtothecenter.Note:Thoughcommonlyused,thisattributeisdeprecated7、.Nowadays,wearesupposedtouseCSStodoalmostallthepresentation.7Logical(phrase)elementsHTMLdefineacollectionofphraseelements(alsocalledlogicalelements)foraddingstructureandmeaningtoinlinetext.Examplesinclude:,,,,,,.CSSisusuallyuse8、dwithphraseelementstodefinethepresentationdetails.8Genericelements(divandspan)Thegenericdivandspaneleme
.Blockelementsmakeupthemaincomponentsofd
4、ocumentstructure.4HeadingsHeadingsareusedtointroduceideasorsectionsoftext.HTMLdefines6levelsheadings,fromh1toh6,inorderfrommosttoleastimportant.Note:HTMLsyntaxrequiresthatheadingsappearinorder(forexample,anh2shouldnotprecedeanh1)forproperdocumentstructure.Onlyuseheadings
5、forheadings,notforpresentationpurposes.5ParagraphsParagraphsarethemostrudimentaryelementsofatextdocument.Theyareindicatedbythepelement.Paragraphsmycontaintextandinlineelements,buttheymaynotcontainotherblockelements,includingotherparagraphs.Note:Onlyuseparagraphsforparagr
6、aphs,notforpresentationpurposes.6TextalignmentTheattributealigncanbeusedinmanytextelementstoadjustthehorizontalalignmentoftextwithinblockelements.Forexample:Heading1willmakethetextalignedtothecenter.Note:Thoughcommonlyused,thisattributeisdeprecated
7、.Nowadays,wearesupposedtouseCSStodoalmostallthepresentation.7Logical(phrase)elementsHTMLdefineacollectionofphraseelements(alsocalledlogicalelements)foraddingstructureandmeaningtoinlinetext.Examplesinclude:,,,,,,.CSSisusuallyuse
,,,,.CSSisusuallyuse
8、dwithphraseelementstodefinethepresentationdetails.8Genericelements(divandspan)Thegenericdivandspaneleme
此文档下载收益归作者所有