pub struct U;Expand description
The <u> element - unarticulated annotation.
§Purpose
The <u> element represents a span of text with an unarticulated, though explicitly
rendered, non-textual annotation. Examples include labeling text as misspelled (like
spell-checker red underlines) or marking proper names in Chinese text.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Spelling errors in user input
- Proper names in Chinese text
- Unarticulated annotations
- Text requiring non-textual annotation
§Key Attributes
- Global attributes only
§Example
<p>The word <u>recieve</u> is misspelled.</p>
<p>User wrote: <u>definately</u> (marked as misspelled)</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for U
impl HtmlElement for U
impl<T: PhrasingContent> CanContain<T> for U
impl CanContain<Text> for U
impl FlowContent for U
impl PalpableContent for U
impl PhrasingContent for U
Auto Trait Implementations§
impl Freeze for U
impl RefUnwindSafe for U
impl Send for U
impl Sync for U
impl Unpin for U
impl UnwindSafe for U
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