i
Definition and Usage
The HTML<i>
represents a range of text that is set off from the normal text for some reason, for example, technical terms, foreign language phrases, or fictional character thoughts. It is typically displayed in italic type. It means that people are likely to continue using them as a quick presentational fix.
The HTML <i>
tag is used for specifying text in an alternate voice or mood, or otherwise offset from the normal prose.
In earlier versions of HTML, the <i>
tag was typically used solely for rendering text in italics, however, this is not necessarily the case with HTML 5. Style sheets can be used to format this text (just like any other element).
Use this element only when there is not a more appropriate semantic element. For example:
- Use <em>to indicate emphasis or stress.
- Use <strong> to indicate importance.
- Use <mark> to indicate relevance.
- Use <cite> to mark the name of a work, such as a book, play, or song.
- Use <dfn> to mark the defining instance of a term
Syntax
<i>text..</i>