pub struct Wbr;Expand description
The <wbr> element - word break opportunity.
§Purpose
The <wbr> element represents a position within text where the browser may optionally
break a line, though its line-breaking rules would not otherwise create a break at that
position. Useful for long words or URLs.
§Content Categories
- Flow Content
- Phrasing Content
§Permitted Content Model
- None (void element)
§Common Use Cases
- Long URLs or file paths
- Compound words or technical terms
- Long strings without natural break points
- Email addresses
§Key Attributes
- Global attributes only
§Example
<p>Visit http://this<wbr>.is<wbr>.a<wbr>.really<wbr>.long<wbr>.example<wbr>.com/</p>
<p>Pneumono<wbr>ultra<wbr>microscopic<wbr>silico<wbr>volcano<wbr>coniosis</p>
<p>Email: super<wbr>long<wbr>username<wbr>@<wbr>example.com</p>§WHATWG Specification
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wbr
impl RefUnwindSafe for Wbr
impl Send for Wbr
impl Sync for Wbr
impl Unpin for Wbr
impl UnwindSafe for Wbr
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