HTML i tag

HTML <i> element is an inline element. It gives an italic style to the piece of text. It indicates a different quality of text from the normal text.

<p> The letter was written in <i> italic </i> style. </p>
<p> This <i> term </i> is defined in another style. </p>
</>
p> The letter was written in italic style.

This term is defined in another style.

Tag Uses

Specific uses of <a> tag

It may be used to represent an idiomatic phrase , different quality of text from surrounding text, and a thought.

The lang attribute may also be applied if the phrase inside the i element is of different language.

Tip: It should represent an important phrase.It can also define different font-style for a piece of text.

Tag omission

Both opening and closing tags are necessary for the <i> tag.

Global Attributes

All the global attributes are applicable on the <i> tag.



Was this article helpful?