X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <tt> Tag. Not Supported in HTML5.


Example

Define teletype text:

<p><tt>Teletype text</tt></p>

Try it Yourself »

Definition and Usage

The <tt> tag is not supported in HTML5. Use CSS instead.

The <tt> tag defines teletype text.


Browser Support

Element
<tt> Yes Yes Yes Yes Yes


Compatibility Notes

CSS syntax: <p style="font-family:'Lucida Console', monospace">

CSS Example: define teletype/monospace font for a <p> element

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.



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook