pub struct H4;Expand description
The <h4> element - level 4 heading.
§Purpose
The <h4> element represents a fourth-level heading, used for subsections
within <h3> sections. Part of the hierarchical heading structure.
§Content Categories
- Flow Content
- Heading Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Sub-subsection headings
- Detailed breakdowns within
<h3>sections - Fine-grained document structure
§Key Attributes
- Global attributes only
§Example
<h3>JavaScript Basics</h3>
<h4>Variables</h4>
<p>Variables store data...</p>
<h4>Functions</h4>
<p>Functions are reusable blocks...</p>§Accessibility
- Part of document outline
- Helps organize complex content
- Screen readers use for navigation
§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for H4
impl HtmlElement for H4
impl CanContain<H4> for Hgroup
impl<T: PhrasingContent> CanContain<T> for H4
impl CanContain<Text> for H4
impl FlowContent for H4
impl HeadingContent for H4
impl PalpableContent for H4
Auto Trait Implementations§
impl Freeze for H4
impl RefUnwindSafe for H4
impl Send for H4
impl Sync for H4
impl Unpin for H4
impl UnwindSafe for H4
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