就像这样:
<header id="mainHeader">
<hgroup>
<h1>Title</h1>
<h2>Sub Title</h2>
</hgroup>
<aside>
<p>Some content within the header but isn't as important.</p>
<p>Some content within the header but isn't as important line 2.</p>
</aside>
</header>
如上所示,原因是我有一些属于页眉的内容(例如短信息块),但与h1和h2标签不太相关,而是有些关联。因此需要这样做。或者我应该使用普通的div标签?
hgroup
标签现在已经过时了。http://www.webmonkey.com/2013/04/w3c-drops-hgroup-tag-from-html5-spec/ - Volker E.