HTML <i> tag


HTML <i> tag is used to represent a part of text in a different voice from the surrounding text. The content within <i> tag usually renders in italic type on the browser. It can be useful to represent some technical terms, phrase, fictional character thoughts, etc.

Syntax

<i>Write your Content here....</i>  

Following are some specifications about the HTML <i> tag

DisplayInline
Start tag/End tagBoth Start and End tag
UsageTextual

Example 1:

<!DOCTYPE html>  
<html>  
<head>  
    <title>HTML i Tag</title>  
    <style>  
        p{  
        color: #e9967a;   
        }  
        i{  
        color: green;  
        }  
    </style>  
</head>  
<body>  
<h2>Example of HTML i tag</h2>  
<p>John and his team is ready for his new gaming project <i>Marko Series 3</i> </p>   
</body>  
</html> 

Output:

HTML I tag

Attribute

Tag-specific attribute

HTML <i> tag does not contain any specific attribute.

Global attribute

HTML <i> tag supports the global attributes in HTML.

Event attribute

HTML <i> tag supports the event attributes in HTML.


Leave a Reply

Your email address will not be published. Required fields are marked *