HTML <tt> tag

Not supported in HTML5.

<tt> The tag is used in HTML 4 to define teletype text.

What to Replace With?

Consider using the following elements, or switch to CSS:

The <kbd> element(for keyboard input),The <var> element(for variables),The <code> element(for computer code),The <samp> element(for computer output).

Examples

Define teletype/monospace font for <p> elements (using CSS):

<p style="font-family:'Lucida Console', monospace">This text is monospace text.</p>

Try It Yourself

In our CSS tutorial, you can find information about specifyingFont Stylefor more details.