pub struct Aside;Expand description
The <aside> element - tangentially related content.
§Purpose
The <aside> element represents content that is tangentially related to the
content around it, which could be considered separate from that content.
Such sections are often represented as sidebars or call-out boxes.
§Content Categories
- Flow Content
- Sectioning Content
- Palpable Content
§Permitted Content Model
- Flow content
§Common Use Cases
- Sidebars with related links or content
- Pull quotes or callouts
- Advertising
- Groups of nav elements (e.g., blogrolls, secondary navigation)
- Related articles or “You might also like” sections
§Key Attributes
- Global attributes only
§Example
<article>
<h1>Climate Change Impact</h1>
<p>Recent studies show...</p>
<aside>
<h2>Related Articles</h2>
<ul>
<li><a href="/renewable-energy">Renewable Energy</a></li>
<li><a href="/carbon-footprint">Carbon Footprint</a></li>
</ul>
</aside>
</article>§Accessibility
- Screen readers identify
<aside>as a complementary landmark - Content should be understandable even if aside is removed
§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Aside
impl HtmlElement for Aside
impl<T: FlowContent> CanContain<T> for Aside
impl FlowContent for Aside
impl PalpableContent for Aside
impl SectioningContent for Aside
Auto Trait Implementations§
impl Freeze for Aside
impl RefUnwindSafe for Aside
impl Send for Aside
impl Sync for Aside
impl Unpin for Aside
impl UnwindSafe for Aside
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