Skip to content

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

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

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

Activity

ghost

ghost commented on Aug 7, 2019

@ghost

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

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

nowherebutup

nowherebutup commented on Aug 7, 2019

@nowherebutup

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

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

EragonBubble commented on Aug 7, 2019

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

LinStan commented on Aug 7, 2019

@LinStan

<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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@EragonBubble@LinStan@nowherebutup

        Issue actions

          [html] 第113天 在HTML5中如何组合标题?用哪个元素? · Issue #1033 · haizlin/fe-interview