When writing in HTML, the tag is an inline element that italicizes and makes text appear different from the surrounding text. It indicates a phrase from another language, a character’s thought, a technical term, etc. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.
Example of code
The Spanish word for the color green is verde.
Example result
The Spanish word for the color green is verde.
The tag should only be used when there isn’t a more appropriate element available; for instance or .
- Example of code
- Example result
- Attributes
- Compatibility
- Related information
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the tag does not have any unique attributes, it does utilize all of the standard attributes.
Compatibility
Block of text, Browser, Compatibility, Container tag, HTML strong tag, Italic font, Web design terms
Related information
- How to change the text line spacing.
- How to center text in HTML.
- HTML and web design help and support.