pub struct Hgroup;Expand description
The <hgroup> element - heading group.
§Purpose
The <hgroup> element represents a heading and related content (typically subheadings,
alternative titles, or taglines). It groups a heading with secondary content like
subtitles or taglines, treating them as a single heading in the document outline.
§Content Categories
- Flow Content
- Heading Content
- Palpable Content
§Permitted Content Model
- One or more
<h1>-<h6>elements, optionally intermixed with<p>elements
§Common Use Cases
- Grouping a title with a subtitle
- Combining a heading with a tagline
- Multi-line headings with different semantic levels
§Key Attributes
- Global attributes only
§Example
<hgroup>
<h1>HTML5 Elements Reference</h1>
<p>A comprehensive guide to semantic HTML</p>
</hgroup>§Accessibility
- Screen readers treat the group as a single heading
- Only the highest-ranked heading affects document outline
§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Hgroup
impl HtmlElement for Hgroup
impl CanContain<H1> for Hgroup
impl CanContain<H2> for Hgroup
impl CanContain<H3> for Hgroup
impl CanContain<H4> for Hgroup
impl CanContain<H5> for Hgroup
impl CanContain<H6> for Hgroup
impl CanContain<P> for Hgroup
impl CanContain<Script> for Hgroup
impl CanContain<Template> for Hgroup
impl FlowContent for Hgroup
impl HeadingContent for Hgroup
impl PalpableContent for Hgroup
Auto Trait Implementations§
impl Freeze for Hgroup
impl RefUnwindSafe for Hgroup
impl Send for Hgroup
impl Sync for Hgroup
impl Unpin for Hgroup
impl UnwindSafe for Hgroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more