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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值