HTML i tag: The HTML<i> tag displays the text in italic. This tag defines a part of the text in an alternate voice or mood. This can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc. In HTML4 the <i> tag was used to extract the text in italics in HTML4. But in HTML5 it is not essential.
It supports both the global and the event attributes. Use this element only when there is not a more appropriate semantic element, such as:
- <em> (emphasized text)
- <strong> (important text)
- <mark> (marked/highlighted text)
- <cite> (the title of a work)
- <dfn> (a definition term)
Syntax: <i> Text </i>
This tag is supported by different types of attributes.
- Internet Explorer
<!DOCTYPE html> <html> <body> <p>Welcome to <i>Freshersnow tutorial</i></p> </body> </html>
Welcome to Freshersnow tutorial