HTML5的结构和语1.docx

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
HTML5的结构和语1

HTML5的结构和语义——语义性的块级元素(三)2012-01-10 15:53:06/kf/201201/116557.html我来说两句?javascript:;收藏?/tg.html我要投稿 [字体:javascript:fontZoomA();小?javascript:fontZoomB();大]aside  figure   dialog? 我在文章和书中一直使用前两个元素。第三个元素我不经常用,它主要用于书面文本。?aside? aside 元素代表说明、提示、边栏、引用、附加注释等,也就是叙述主线之外的内容。例如,在developerWorks 文章中,经常会看到用表格形式编写的边栏,见代码3 用HTML 4 编写的developerWorks 边栏。?以下是代码片段:[ ]table align=right border=0 cellpadding=0 cellspacing=0 width=40%tbodytrtd width=10img alt= src=///i/c.gif height=1 width=10/tdtdtable border=1 cellpadding=5 cellspacing=0 width=100%tbodytrtd bgcolor=#eeeeeepa name=xf-valuespan class=smalltitle.xf-value/span/a/ppThe code type=inline.xf-value/code selector used here styles the inputfield value but not its label. This is actually inconsistentwith the current CSS3 draft. The example really should use thecode type=inline::value/code pseudo-class instead like so:/ptable border=0 cellpadding=0 cellspacing=0 width=100%tbodytrtd class=code-outlinepre class=displaycodeinput::value { width: 20em; }#ccnumber::value { width: 18em }#zip::value { width: 12em }#state::value { width: 3em }/pre/td/tr/tbody/tablebr?pHowever, Firefox doesnt yet support this syntax./p/td/tr/table? 在HTML 5 中,可以按照更有意义的方式编写这个边栏,见代码4 用HTML 5 编写的developerWorks 边栏。?以下是代码片段:[ ]asideh3.xf-value/h3pThe code type=inline.xf-value/code selector used here styles the inputfield value but not its label. This is actually inconsistentwith the current CSS3 draft. The example really should use thecode type=inline::value/code pseudo-class instead like so:/p?pre class=displaycodeinput::value { width: 20em; }#ccnumber::value { width: 18em }#zip::value { width: 12em }#state::value { width: 3em }/pre?pHowever, Firefox doesnt yet support this syntax./p/aside? /os/liulanqi/浏览器可以决定把这个边栏放在哪里(可能需要用一点儿CSS 代码)。?figure? figure 元素代表一个块级图像,还可以包含说明。例如,在许多developerWorks 文章中,可以看到代码5 用HTML 4 编写的developerWorks 图 这样的标记其结果见图1。?以下是代码片段:[ ]a name=fig2bFigure 2. Install Mozilla XForms dialog/b/abr /img alt=A Web site is requesting permission to install t

文档评论(0)

zhuwenmeijiale + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:7065136142000003

1亿VIP精品文档

相关文档