Horje
HTML <i> Tag

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

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

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

  • <em> (emphasized text)
  • <strong> (important text)
  • <mark> (marked/highlighted text)
  • <cite> (the title of a work)
  • <dfn> (a definition term)

How to create HTML <i> Tag

Mark up text that is set off from the normal prose in a document
index.html
Example: HTML
<p><i>Lorem ipsum</i> is the most popular filler text in history.</p>

<p>The <i>RMS Titanic</i>, a luxury steamship, sank on April 15, 1912 after striking an iceberg.</p>

Output should be:

How to create HTML <i> Tag

Which browser will support for HTML <i> Tag

Which browser will support for HTML <i> Tag

How to set Default CSS Settings for HTML <i> Tag

Most browsers will display the <i> element with the following default values
index.html
Example: HTML
<style>
i { 
  font-style: italic;
}
</style>

Output should be:

How to set Default CSS Settings for HTML <i> Tag





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference