pub struct B;Expand description
The <b> element - bring attention to.
§Purpose
The <b> element draws attention to content without conveying extra importance,
seriousness, or emphasis. Used for keywords, product names, or other spans of text
whose typical presentation is bold. Not for emphasis—use <strong> for that.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Keywords in a document
- Product names in reviews
- Lead-in words or phrases
- Drawing attention without semantic importance
§Key Attributes
- Global attributes only
§Example
<p><b>Note:</b> This feature is experimental.</p>
<p>The <b>iPhone 15</b> was released in September 2023.</p>
<p><b>Ingredients:</b> flour, sugar, eggs, butter.</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for B
impl HtmlElement for B
impl<T: PhrasingContent> CanContain<T> for B
impl CanContain<Text> for B
impl FlowContent for B
impl PalpableContent for B
impl PhrasingContent for B
Auto Trait Implementations§
impl Freeze for B
impl RefUnwindSafe for B
impl Send for B
impl Sync for B
impl Unpin for B
impl UnwindSafe for B
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