Skip to content

Add an hgroup Example with Multiple h1 Elements #115

@patrickdark

Description

@patrickdark

Reference URL:
https://html.spec.whatwg.org/multipage/semantics.html#the-hgroup-element

The spec doesn't make it clear whether or not I can add equivalent headings for content. I'm trying to do something to the effect of:

  • List Title 1
  • List Title 1 Alternative
  • List

In theory, this should be doable with:

<hgroup>
    <h1>List Title 1</h1>
    <h1>List Title 1 Alternative</h1>
</hgroup>
<ul>[...]</ul>

However, the only example utilizing the hgroup element in the spec shows how to create a subtitle, and the spec has this confusing text: "Other elements of heading content in the hgroup element indicate subheadings or subtitles". The quoted text indicates that the second h1 element might be considered a subtitle of the first h1 element.

Edits: I had to reformat the post with Markdown since HTML is apparently interpreted. I modified the phrasing of the last paragraph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationStandard could be clearergood first issueIdeal for someone new to a WHATWG standard or software project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions