Table of Contents
INTRODUCTION
The <i> element is used to make text appear different from the normal text by making it italicize.
The <i> element is used for a range of different scenarios. The Common use cases are listed below.
- alternative voice or mood
- taxonomic designations - scientific classification names used to categorize and identify organisms in biology. (ex: "canis lupus" meaning wolf. )
- idiomatic terms from other language ex: "Bona fide" meaning authentic in Latin
- technical terms (ex: algorithm)
- Transliterations (mapping of text from one script to another preserving pronunciation ex. English word "Republic" is Transliterated as "Respublika" in Russian.)
- Thoughts
- ship or vessel name
Historically in earlier versions of the HTML specification, the <i> tag was purely presentational, serving to render text in italics which is the origin of the <i> element's name. However, this is no longer the case, as these elements now convey semantic meaning rather than just visual styling.
Syntax:<i> - TEXT - </i>
<p>
Walt Disney - <i>"if you can dream it, you can do it"</i>
</p>
Walt Disney - "if you can dream it, you can do it"
Tag Omission
The HTML <i> element must have both start tag and end tag.
ATTRIBUTES
<i> elements has only global attributes.