Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

He named his car The lightning, because it was very fast.

Try it »


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support tag.


Tag Definition and Usage Notes

Defines a part of the text that is different from the rest and renders that part as italic text.

The tag is used to indicate technical terms, idiomatic expressions in other languages, thoughts, the names of spacecraft, and so on.

When no other element with appropriate semantics is available, use the element. Other semantic elements are as follows:

  • (emphasized text)
  • (important text)
  • (marked/highlighted text)
  • (title of a work)
  • (a definition term)

Differences between HTML 4.01 and HTML5

In HTML 4.01, The tag renders text in italics. However, in HTML5 this is not necessary; you can use a style sheet to format the text in the element.


Global Attributes

The tag supports HTML Global Attributes.


Event attribute

The tag supports HTML Event Attributes.