W3Schools.com

HTML5 <i> Tag

Example

<p>He named his car <i>The lightning</i>, because it was very fast.</p>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <i> tag is supported in all major browsers.


Definition and Usage

The <i> tag defines a part of text in an alternate voice or mood. The <i> tag is typically displayed in italic type.

The <i> tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc.

Use the <i> element only when there is not a more appropriate semantic element, such as:


Differences Between HTML 4.01 and HTML5

In HTML 4.01, the <i> tag was used to render text in italics. However, this is not necessarily the case with HTML5. Style sheets can be used to format the text in the <i> element.


Global Attributes

The <i> tag also supports the Global Attributes in HTML5.


Event Attributes

The <i> tag also supports the Event Attributes in HTML5.


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE