pub struct I;Expand description
The <i> element - idiomatic text.
§Purpose
The <i> element represents text in an alternate voice or mood, or otherwise offset
from normal prose. Examples include taxonomic designations, technical terms, foreign
phrases, thoughts, or ship names. Not for emphasis—use <em> for that.
§Content Categories
- Flow Content
- Phrasing Content
- Palpable Content
§Permitted Content Model
- Phrasing content
§Common Use Cases
- Foreign language phrases
- Technical or taxonomic terms
- Thoughts or internal dialogue
- Ship or vessel names
- Idiomatic expressions
§Key Attributes
- Global attributes only
§Example
<p>The term <i>café</i> comes from French.</p>
<p>The species <i>Homo sapiens</i> evolved in Africa.</p>
<p><i>I wonder what she meant,</i> he thought.</p>
<p>The <i>HMS Victory</i> was Nelson's flagship.</p>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for I
impl HtmlElement for I
impl<T: PhrasingContent> CanContain<T> for I
impl CanContain<Text> for I
impl FlowContent for I
impl PalpableContent for I
impl PhrasingContent for I
Auto Trait Implementations§
impl Freeze for I
impl RefUnwindSafe for I
impl Send for I
impl Sync for I
impl Unpin for I
impl UnwindSafe for I
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