<i>
HTML <i> Tag
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> <p>He named his car <i>The lightning</i>, because it was very fast.</p> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
All major browsers support< i> tag.
Tag definition and usage instructions
<i> Define a part that is different from the rest of the text, and render this part of the text as italicized text.
<i> Tags are used to represent scientific terms, idioms in other languages, ideas, spacecraft names, etc.
Use the <i> element when no other element with appropriate semantics can be used. Other semantic elements are as follows:
- <em> (emphasized text)
- <strong> (important text)
- <mark> (tagged/highlighted text)
- <cite> (title of work)
- <dfn> (a defining item)
Differences between HTML 4.01 and HTML5
In HTML 4.01, the <i> tag renders text in italics. However, this is not necessary in HTML5, and a stylesheet can be used to format the text within the <i> element.
Global attributes
<i> tag supports HTML global attributes.
Event attributes
<i> tag supports HTML event attributes.