Breaking

Sunday, May 12, 2019

HTML tt Tag


Example

Define teletype text:
<p><tt>Teletype text</tt></p>
Try it Yourself »

Definition and Usage

The <tt> tag is not supported in HTML5.
If <tt> was used for marking up keyboard input, consider the <kbd> element; for variables, consider the <var> element; for computer code, consider the <code> element; and for computer output, consider the <samp> element, or use CSS instead.
The <tt> tag defines teletype text.

Browser Support

Element
<tt>YesYesYesYesYes

Compatibility Notes

CSS syntax: <p style="font-family:'Lucida Console', monospace">
In our CSS tutorial you can find more details about specifying the type of font in a document.

Differences Between HTML 4.01 and HTML5

The <tt> tag is not supported in HTML5.

No comments:

Post a Comment