HTML <tt> tag
The <tt> tag is used to display teletype or monospaced text.
Standard attributes
class, dir, id, lang, style, title, xml:lang
For more information on standard attributes, check out our HTML standard attributes reference page.
Event attributes
onclick, ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onkeydown, onkeypress, onkeyup
For more information on event attributes, check out our HTML event attributes reference page.
Example
Here is some regular text
<tt>Here is some teletype text</tt>
HTML gives many text options, including displaying <tt>teletype text.<tt>
Output:
Here is some regular text
Here is some teletype text
HTML gives many text options, including displaying teletype text.