html5 hgroup,<hgroup> - HTML: HyperText Markup Language | MDN

The element has been removed from the HTML5 (W3C) specification, but it still is in the WHATWG version of HTML. It is partially implemented in most browsers, though, so is unlikely to go away.

However, given that a key purpose of the element is to affect how headings are displayed by the outline algorithm defined in the HTML specification—but the HTML outline algorithm is not implemented in any browsers—then the semantics are in practice only theoretical.

So the HTML5 (W3C) specification provides advice on how to mark up Subheadings, subtitles, alternative titles and taglines without using .

The element allows the primary heading for a document section to be grouped with any secondary headings—such as subheadings or alternative titles—to form a multi-level heading.

In other words, the element prevents any of its secondary .

So in the abstract outline produced by the HTML outline algorithm defined in the HTML specification, the as a whole forms a single logical heading, with the entire set of going into the outline as one multi-level unit, to comprise that single logical heading in the abstract outline.

To produce any (non-abstract) rendered view of such an outline, some choice must be made in the design of the rendering tool about how to render headings in such a way as to convey their multi-level nature. There are a variety of ways an might be shown in a rendered outline; for example:

an might be shown in a rendered outline in with a colon character and space (“:”) or other such punctuation after the primary heading and before the first secondary heading (and with the same or similar punctuation before any other secondary headings

an might be shown in a rendered outline in with the primary heading followed by parentheses around the secondary heading(s)

Consider the following HTML document:

HTML Standard

HTML

Living Standard — Last Updated 12 August 2016

Some intro to the document.

Table of contents

  1. ...

First section

Some intro to the first section.

A rendered outline for that document might look like the following:

d6c99f63b4746897709cf826b2f32580.png

That is, the rendered outline might show the primary title, HTML, followed by a colon and space, followed by the secondary title, Living Standard — Last Updated 12 August 2016.

Or, the rendered outline for that document might instead look like the following:

31708b283f5aaf7d6d6ca4881a7b4a32.png

That is, the rendered outline might show the primary title, HTML, followed by the secondary title shown in parentheses:(Living Standard — Last Updated 12 August 2016).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值