HTML <i> Tag
Description
The <i>
HTML tag, which stands for "italic," is used to apply italic formatting to text within a web page. It is a structural element that does not convey any specific meaning or semantics on its own. Instead, it is a presentational tag that alters the appearance of text by slanting it to the right. Web developers typically use it to emphasize certain words or phrases within a paragraph or to add a stylistic touch to content. However, for conveying semantic meaning or importance, it is often recommended to use other HTML tags like <em>
for emphasis or <cite>
for citations, as they provide better clarity and accessibility.
Properties
- Permitted Parents
- Any element that accepts phrasing content
- Content
- Inline and text
- Start/End Tags
- Start tag: required, End tag: required
Example
This is an example of <i>italics</i> text
Attributes
None
Global Attributes
The <i>
tag also supports the Global Attributes in HTML5
Event Attributes
The <i>
tag also supports the Event Attributes in HTML5
Browser Support
The following table will show you the current browser support for the HTML <i>
tag.
Desktop | |||||
12 | 1 | 1 | 15 | 4 |
Tablets / Mobile | |||||
18 | 4 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023