Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第113天 在HTML5中如何组合标题?用哪个元素? #1033

Open
haizhilin2013 opened this issue Aug 6, 2019 · 4 comments
Open
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第113天 在HTML5中如何组合标题?用哪个元素?

@haizhilin2013 haizhilin2013 added the html html label Aug 6, 2019
@ghost
Copy link

ghost commented Aug 7, 2019

<hgroup>,内含多个 <h1> ~ <h6> 元素。

主要用于整合文章的主、副标题,抑或是整合文档/页面标题与章节/段落标题。

@nowherebutup
Copy link

nowherebutup commented Aug 7, 2019

当有多个h标签的元素时,
需要用hgroup包裹

<hgroup>
  <h1><a href="/">标题一</a></h1>
  <h2>标题二</h2>
</hgroup>

@EragonBubble
Copy link

EragonBubble commented Aug 7, 2019

<hgroup> 标签用于对网页或区段(section)的标题进行组合

@LinStan
Copy link

LinStan commented Aug 7, 2019

<hgroup> 是H5新增的标签可以用于对各级标题进行组合

<hgroup>
  <h1><a href="/">标题一</a></h1>
  <h2>标题二</h2>
</hgroup>

但是实际使用中各级标题中会有其他内容,实用性不强,已经W3C被移除

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

4 participants