pub struct H3;Expand description
The <h3> element - level 3 heading.
§Purpose
The <h3> element represents a third-level heading, used for subsections
within <h2> sections. Part of the hierarchical heading structure.
§Content Categories
- Flow Content
- Heading Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Subsection headings within
<h2>sections - Detailed topic divisions
- Third-level document structure
§Key Attributes
- Global attributes only
§Example
<h2>Frontend Development</h2>
<h3>HTML</h3>
<p>HTML provides structure...</p>
<h3>CSS</h3>
<p>CSS handles styling...</p>
<h3>JavaScript</h3>
<p>JavaScript adds interactivity...</p>§Accessibility
- Maintains document outline hierarchy
- Should not skip heading levels
- Helps screen reader users navigate
§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for H3
impl HtmlElement for H3
impl CanContain<H3> for Hgroup
impl<T: PhrasingContent> CanContain<T> for H3
impl CanContain<Text> for H3
impl FlowContent for H3
impl HeadingContent for H3
impl PalpableContent for H3
Auto Trait Implementations§
impl Freeze for H3
impl RefUnwindSafe for H3
impl Send for H3
impl Sync for H3
impl Unpin for H3
impl UnwindSafe for H3
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