pub struct Small;Expand description
The <small> element - side comments and small print.
§Purpose
The <small> element represents side comments such as small print, including
copyright, legal text, disclaimers, caveats, or other fine print. It doesn’t
“de-emphasize” content semantically.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Copyright notices
- Legal disclaimers
- Fine print and caveats
- License information
- Attribution text
§Key Attributes
- Global attributes only
§Example
<footer>
<p><small>© 2024 My Company. All rights reserved.</small></p>
</footer>
<p>Price: $99.99 <small>(taxes not included)</small></p>
<p><small>This offer expires on December 31, 2024.</small></p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Small
impl HtmlElement for Small
impl<T: PhrasingContent> CanContain<T> for Small
impl CanContain<Text> for Small
impl FlowContent for Small
impl PalpableContent for Small
impl PhrasingContent for Small
Auto Trait Implementations§
impl Freeze for Small
impl RefUnwindSafe for Small
impl Send for Small
impl Sync for Small
impl Unpin for Small
impl UnwindSafe for Small
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