pub struct Footer;Expand description
The <footer> element - footer content.
§Purpose
The <footer> element represents footer content for its nearest ancestor sectioning
content or sectioning root. Typically contains information about the author, copyright,
related links, or other metadata. A page can have multiple <footer> elements.
§Content Categories
- Flow Content
- Palpable Content
§Permitted Content Model
- Flow content (but not
<header>,<footer>, or<main>descendants)
§Common Use Cases
- Site-wide footer with copyright and links
- Article or section footers with metadata
- Author information and related content
- Contact information and social links
§Key Attributes
- Global attributes only
§Example
<footer>
<p>© 2024 My Company. All rights reserved.</p>
<nav>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</nav>
</footer>
<article>
<h1>Blog Post</h1>
<p>Content...</p>
<footer>
<p>Posted by <a href="/author">Jane Doe</a></p>
<p>Tags: <a href="/tag/html">HTML</a>, <a href="/tag/web">Web</a></p>
</footer>
</article>§Accessibility
- Screen readers may identify footers as landmarks
- Often contains important navigation and legal information
§WHATWG Specification
Trait Implementations§
Auto Trait Implementations§
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