Signup/Sign In

HTML i (italic) Tag

The HTML i element is used to make certain words or terms within a sentence appear in italics style, which is nothing but slightly slanted text.

what is italic style

  • The i here stands for italic text just like b stands for bold text(HTML <b> tag).

  • It comes under the physical style elements which are used to change the appearance of the text on a webpage.

  • The web browser renders the enclosed text within the <i> element in italic style.

  • The emphasize tag or the HTML <em> tag is a meaningful version of the italics tag.

    italics and em tag difference

  • We can mark the text in italic style to indicate that it is different from normal text.

HTML <i> Tag - Syntax and Usage

The HTML <i> tag requires the start(opening) tag and end(closing) tag.

Also, this is an inline element. The following is the basic syntax for the same:

<i>
    some text
</i>

HTML <i> Tag Basic Example

Below we have a basic example for the same:

HTML <i> Tag Attributes

This element does not have any specific attributes although this element supports Global attributes and Event attributes.

Default CSS Style for HTML <i> Tag

i{
    font-style: italic;
}

Browser Support for HTML <i> Tag

Following browsers support this attribute:

  • Firefox 1+

  • Google Chrome 1+

  • Internet Explorer 2+

  • Safari 1+

  • Opera 2.1+



About the author:
Aspiring Software developer working as a content writer. I like computer related subjects like Computer Networks, Operating system, CAO, Database, and I am also learning Python.