HTML i tag
HTML Tag Reference
Example
Completed
<p>He named his car <i>The lightning</i>, because it was very fast.</p>
Try it YourselfDefinition and Usage
CompletedThe <i> tag defines a part of text in an alternate voice or mood. The content of the <i> tag is usually displayed in italic.
The <i> tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc.
Use the <i> element only when there is not a more appropriate semantic element, such as:
Browser Support
Completed| Element | |||||
|---|---|---|---|---|---|
| <em> | Yes | Yes | Yes | Yes | Yes |
Differences Between HTML 4.01 and HTML5
CompletedIn HTML 4.01, the <i> tag was used to render text in italics. However, this is not necessarily the case with HTML5. Style sheets can be used to format the text inside the <i> element.
Global Attributes
CompletedThe <i> tag also supports the Global Attributes in HTML.
Event Attributes
CompletedThe <i> tag also supports the Event Attributes in HTML.
Related Pages
CompletedHTML tutorial: HTML Text Formatting
HTML DOM reference: Italic Object
Default CSS Settings
CompletedMost browsers will display the <i> element with the following default values:
