bladestone 发表于 2013-1-24 06:40:36

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
页: [1]
查看完整版本: HTML 5 element