H6

Struct H6 

Source
pub struct H6;
Expand description

The <h6> element - level 6 heading.

§Purpose

The <h6> element represents the lowest level (sixth-level) heading, used for the finest grain of subsections. Rarely used in practice.

§Content Categories

  • Flow Content
  • Heading Content
  • Palpable Content

§Permitted Content Model

  • Phrasing content

§Common Use Cases

  • Very deep subsection headings
  • Highly detailed technical documentation
  • Complex nested content structures

§Key Attributes

  • Global attributes only

§Example

<h5>Specific Use Cases</h5>
<h6>Edge Case 1</h6>
<p>When dealing with legacy browsers...</p>
<h6>Edge Case 2</h6>
<p>In certain mobile scenarios...</p>

§Accessibility

  • Least commonly used heading level
  • Consider if such deep hierarchy is necessary
  • Screen readers support all heading levels

§WHATWG Specification

Trait Implementations§

Source§

impl HtmlElement for H6

Source§

const TAG: &'static str = "h6"

The HTML tag name (e.g., “div”, “span”, “img”).
Source§

const VOID: bool = false

Whether this is a void element (self-closing, no children allowed).
Source§

impl CanContain<H6> for Hgroup

Source§

impl<T: PhrasingContent> CanContain<T> for H6

Source§

impl CanContain<Text> for H6

Source§

impl FlowContent for H6

Source§

impl HeadingContent for H6

Source§

impl PalpableContent for H6

Auto Trait Implementations§

§

impl Freeze for H6

§

impl RefUnwindSafe for H6

§

impl Send for H6

§

impl Sync for H6

§

impl Unpin for H6

§

impl UnwindSafe for H6

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.