HTML tt Tag

HTML <tt>Tag: The HTML<tt> tag specifies teletype text. This HTML tt tag is not supported in HTML5. And this tag is depreciated from HTML 5. It was used for marking Keyboard input. It was mainly used for formatting purpose.

HTML <tt>Tag

Syntax: <tt> Text </tt>

Browser compatibility

The HTML tt tag is supported by different types of browsers.

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Internet Explorer

Example:

<!DOCTYPE html>
<html>
<body>
<p><tt>This  is a teletype text.</tt></p>
</body>
</html>

Output:

This text is a teletype text.