我试图使用标记创建一个<small>描述,
我还有一个带有标签的大标题,它们都是Ia <header>标签,
这就是现在的样子:
<header>
<h2>User settings</h2>
<small>Yep, here's the settings for you.</small>
</header> 但是,我不确定下面的用法是否会更好地使这些标记有意义?
<header>
<h2>
User settings
<small>Yep, here's the settings for you.</small>
</h2>
</header> 我应该把<small>放在<h2>中,而不是把<small>放在<header>中吗?
发布于 2016-10-04 07:07:27
好吧,这取决于
如果将<small>标记放置在<h2>中,这将更加重要(请注意,使用<small>也会影响重要性)
另一方面,一些工具(如html )也会列出<small>内容,这可能不是人们所希望的行为。
发布于 2016-10-04 09:01:00
发布于 2016-10-04 06:58:29
Mozilla说:https://developer.mozilla.org/tr/docs/Web/HTML/Element/header
<header>
<hx></hx>
</header>更喜欢<small>中的<hx>
twitter引导文档更喜欢hx http://getbootstrap.com/css/#type-headings中的小文件。
https://stackoverflow.com/questions/39845986
复制相似问题