The HTML Idiomatic Text element (<i>
) represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others. Historically, these have been presented using italicized type, which is the original source of the <i>
naming of this element.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
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 accepts phrasing content. |
Implicit ARIA role | No corresponding role |
Permitted ARIA roles | Any |
DOM interface | HTMLElement |
Attributes
This element only includes the global attributes.
Usage notes
- Use the
<i>
element for text that is set off from the normal prose for readability reasons. This would be a range of text with different semantic meaning than the surrounding text. Among the use cases for the<i>
element are spans of text representing a different quality or mode of text, such as:- Alternative voice or mood
- Taxonomic designations (such as the genus and species "Homo sapiens")
- Idiomatic terms from another language (such as "et cetera"); these should include the
lang
attribute to identify the language - Technical terms
- Transliterations
- Thoughts (such as "She wondered,What is this writer talking about, anyway?")
- Ship or vessel names in Western writing systems (such as "They searched the docks for the Empress of the Galaxy, the ship to which they were assigned.")
- In earlier versions of the HTML specification, the
<i>
element was merely a presentational element used to display text in italics, much like the<b>
element was used to display text in bold letters. This is no longer true, as these tags now define semantics rather than typographic appearance. A browser will typically still display the contents of the<i>
element in italic type, but is, by definition, no longer required to do so. To display text in italic type, authors should use the CSSfont-style
property. - Be sure the text in question is not actually more appropriately marked up with another element.
Examples
This example demonstrates using the <i>
element to mark text that is in another language.
<p>The Latin phrase <i>Veni, vidi, vici</i> is often mentioned in music, art, and literature.</p>
Result
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<i>' in that specification. |
Living Standard | |
HTML5 The definition of '<i>' in that specification. |
Recommendation | |
HTML 4.01 Specification The definition of '<b>' in that specification. |
Recommendation |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
i | Chrome Full support 1 | Edge Full support 12 | Firefox Full support 1 | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 4 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support