: The Idiomatic Text element - HTML | MDN (original) (raw)

Try it

<p>I looked at it and thought <i>This can't be real!</i></p>

<p>
  <i>Musa</i> is one of two or three genera in the family <i>Musaceae</i>; it
  includes bananas and plantains.
</p>

<p>
  The term <i>bandwidth</i> describes the measure of how much information can
  pass through a data connection in a given amount of time.
</p>
i {
  /* Add your styles here */
}

Attributes

This element only includes the global attributes.

Usage notes

Examples

This example demonstrates using the <i> element to mark text that is in another language.

<p>
  The Latin phrase <i lang="la">Veni, vidi, vici</i> is often mentioned in
  music, art, and literature.
</p>

Result

Technical summary

Content categories Flow content,phrasing content, palpable content.
Permitted content Phrasing content.
Tag omission None, both the starting and ending tag are mandatory.
Permitted parents Any element that acceptsphrasing content.
Implicit ARIA role generic
Permitted ARIA roles Any
DOM interface HTMLElement

Specifications

Specification
HTML # the-i-element

Browser compatibility

See also