pub struct Strong;Expand description
The <strong> element - strong importance.
§Purpose
The <strong> element represents strong importance, seriousness, or urgency for its
contents. Typically rendered in bold, but the semantic meaning is importance, not
just visual weight.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Marking critical information or warnings
- Highlighting important concepts
- Indicating urgency or seriousness
- Key terms or takeaways
§Key Attributes
- Global attributes only
§Example
<p><strong>Warning:</strong> This action cannot be undone.</p>
<p>The deadline is <strong>tomorrow</strong>.</p>
<p><strong>Important:</strong> Save your work frequently.</p>§Accessibility
- Screen readers may emphasize strong content
- Conveys semantic importance
§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Strong
impl HtmlElement for Strong
impl<T: PhrasingContent> CanContain<T> for Strong
impl CanContain<Text> for Strong
impl FlowContent for Strong
impl PalpableContent for Strong
impl PhrasingContent for Strong
Auto Trait Implementations§
impl Freeze for Strong
impl RefUnwindSafe for Strong
impl Send for Strong
impl Sync for Strong
impl Unpin for Strong
impl UnwindSafe for Strong
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