Note/Warning/Danger/Info This tag is deprecated in HTML5. It is better to use any one of these tags as an alternative -
<samp> - To show the sample computer output <code> - For computer code <kbd> - For showing keyboard input <var> - To define variables for arithmetic calculation
HTML <tt> tag
The <tt> tag stands for teletype text.
Syntax:
<tt>text..</tt>
Default CSS value
NONE
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
None | None | <tt> tag is deprecated in HTML5 |
Attributes used with <tt> tag
NONE
Supporting Browsers
Related Tags
This tag is not related with any other tags. As it is deprecated, you should consider using <samp>, <code>, <kbd> or <var> tags.