When writing in HTML, the tag was used to designate inline teletype text. It was intended to style text as it would appear on a fixed-width display, using the browser’s default monotype font. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Some normal text. Some teletype text.

Example result

Some normal text. Some teletype text.

This tag is deprecated. Going forward, the tag should be used instead.

  • 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

*Until it is removed in a future version of HTML

Browser, Compatibility, Container tag, Font, HTML kbd tag, HTML var tag, Inline, Web design terms

  • HTML and web design help and support.