HTML i tag

<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.

Example

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

Specific uses

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

See an example of idiomatic phrase.

Example


<p>He was feeling <i>sick as a dog!</i></p>
Try</>

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

Example


<p>On sunday the weather was marvellous and <i lang="fr">Nous allions en voyage.</i></p>
Try</>

The class attribute may also be applied on the I element.

Example

<style>
.i-style{
	color:blue;
	font-size:18;
}
</style>

Try</>

Tip: It should be used as an important phrase.It should be used to define different font style from surrounding 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?

 

Email:

Message:

Get the newsletter