HTML i tag

HTML i tag is used for displaying text in italics. The element supports HTML global attributes and can be used in any element that accepts phrasing content.

HTML i tag

The HTML i tag displays text in italics. This element supports only HTML global attributes.

via GIPHY

Syntax

<i>Italics text</i>

Example

<DOCTYPE html>
<html>
<head>
    <title>HTML Italics</title>
</head>
<body>
    <p>This is normal text. <i>This is italics.</i></p>
</body>
</html>

Output

This is normal text. This is italics.

Using CSS

You can also make a text appear in italics as shown in the following example.

Example

<p style="font-style:italic;">Hello World</p>

Output

Hello World


Share Tweet Send
0 Comments
Loading...