Home·HTML tags

<i>

Inline markup

Text in a different voice — foreign words, scientific names, inner thoughts.

How to write it<i></i>
Closing tag</i>
Void elementNo — it must be closed
Common attributesNone in particular
CategoryInline markup

How to read this

  • Most tags come in pairs, opening and closing. Only tags with no content — img, br — are left unclosed.
  • Writing </br> for a void element does nothing useful; the browser ignores it or adds an empty line.
  • Appearance is CSS’s job. A tag says what something is; bold or italic is only the consequence.
  • Choosing the tag that matches the meaning helps search engines and screen readers alike. Wrapping everything in div throws that information away.

Frequently asked questions

Q. What is the HTML <i> tag?

Text in a different voice — foreign words, scientific names, inner thoughts.

Q. How do you write <i>?

As <i></i>. The opening <i> pairs with the closing </i>.

Q. Which attributes are common on <i>?

None in particular. The global attributes every element has — class, id, style — still apply.

Q. What group does <i> belong to?

The inline markup group.

Tags in the same group

Reference docs