Computer >> Computer tutorials >  >> Programming >> HTML

HTML <i> Tag


The <i> tag in HTML is used to set a part of text as italic. The usage of <i> tag should only be considered if you do not have the following semantic elements − <em>,<strong>, <mark>, etc.

Let us now see an example to implement the <i> tag −

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML i tag</title>
</head>
<body>
   <h1>
      Products
   </h1>
   <p>The products includes Clothing, Accessories and Furniture to be delivered by <i>FDX</i> couriers.</p>
</body>
</html>

Output

HTML <i> Tag

In the above example, we have used a <p> tag to add content −

<p>The products includes Clothing, Accessories and Furniture to be delivered by <i>FDX</i> couriers.</p>

We have set the <i> tag above −

<i>FDX</i>