If you find this helpful, please click the Google |


The <i> Tag in HTML 5
The <i> tag indicates that an italic font should be used to display the content. Text in italics is not necessarily considered to have any increased emphasis. The i element is one of the phrase elements in HTML.
Alternatives to the <i> tag for italicized text
The <em> tag can also be used to display text in italics, but also indicates that the text is to be emphasized for some reason.
Italics <i> Tag Syntax
Rules for coding HTML i
elements
<body> ... ... phrasing content expected ...<i>... phrasing content ...</i>... ... </body>
Rules for coding HTML i
elements
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the i element for italicized text where phrasing content is expected.
- Begin the i element with a starting <i> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <i> tag as appropriate.
- Inside the i element, between the starting
<i>
tag and the ending</i>
tag, code the inner HTML phrasing content with the text that is to appear in italic font style. - End the i element with a matching
</i>
closing tag.
Content Model
Content of the i element
The content of the i element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.
<i> Tag Attributes
Attributes of the <i> tag
global attributes | The only attributes that can be coded on the <cite> tag are the common HTML attributes. |
Italics <i> Tag Examples
Examples of the i
tag in HTML 5
Changes in HTML 5 - <i> Tag
What's new in HTML 5
Differences between HTML 5 and earlier versions of HTML
The 2000-2010 Recommendations from the W3C HTML Working Group defined the HTML namespace for the i element type name along with the names of all HTML element types. In older (pre-2000) versions of HTML, element type names were not associated with a namespace.