首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

HTML 五 element

2012-09-23 
HTML 5 elementHTML 5 text element article, section, nav, aside are all section content.所谓的sect

HTML 5 element
HTML 5 text element
>> article, section, nav, aside are all section content.
所谓的section就是可以按照类似word outline风格的分层缩进视图。 但是目前在FF/Chrome都没有支持.
可以在此处体验:  http://gsnedders.html5.org/outliner/
'Untitle Section'表示其没有title,仅是warning信息.

<hgrou>主要是用来描述总结,概述或者类似的文本元素的,他们都hgroup的子元素。
英文的描述如下:
The spec for <hgroup> says “For the purposes of document
summaries, outlines, and the like, the text of hgroup elements
is defined to be the text of the highest-ranked h1–h6 element
descendant of the hgroup element.”

例子:

<article>  <hgroup>     <h2>Get the beers in! Here comes</h2>     <h1>Remy Sharp!</h1>  </hgroup></article>


Note that certain elements—<blockquote>, <body>, <details>,
<fieldset>, <figure>, <td>—are said to be sectioning roots, and
can have their own outlines, but the sections and headings
inside these elements do not contribute to the outlines of their
ancestors.

可以使用anchor去包装整个块元素,将style应用于整个block,但须在css中使用display:block。
http://mattwilcox.net/sandbox/html5-block-anchor/test.html

热点排行