<i> tag to format italic text. It can be used in conjunction with other tags (bold, underline, etc.). The
<em> (emphasis) tag is preferred for ADA compliance. Both tags produce italic text on the screen, but the
<em> tag also tells screen-reading software to emphasize the word.
The code requires an opening and a closing tag:
<i> – opening tag
</i> – closing tag
<em> – opening tag
</em> – closing tag
All text between the opening and closing tags will be italic. The tag has no other effect on non-text elements.
When viewing this example, you will <i>clearly</i> see how the ITALIC and EMPHASIS tags produce <em>the same result</em>.
When viewing this example, you will clearly see how the ITALIC and EMPHASIS tags produce the same result.
Note: Studies of online display fonts suggest that italic type is the most difficult to read via a computer monitor, especially at small font sizes.