Javatpoint Logo
Javatpoint Logo

HTML <tt> tag (Not supported in HTML5)

HTML <tt> tag was used to define text in monospaced font or fixed-width fonts so that it would render as teletype, text-only screen, or line printer on the browser.

Note: Do not use HTML <tt> tag, as it is not supported in HTML5, instead of you can use following tags for better use:

  • <code>: To represent the computer programming code
  • <pre>: To preserve line break and indentation in plain text.
  • <kbd>: To represent keyboard input.
  • <var>: To represent variables in an equation
  • <samp>: To represent the text as sample output.


Following are some specifications about the HTML <tt> tag

Display Inline
Start tag/End tag Start and End tag
Usage Formatting


Test it Now


HTML tt tag


Tag-specific attributes:

The <tt> tag does not contain any specific attribute.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML u Tag

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA