The <tt> tag is the abbreviation of teletype text. This tag is depreciated from HTML 5. It was used for marking Keyboard input. It was mainly used for formatting purposes. This tag was used in HTML 4 (Not Supported in HTML5).
Syntax:
<tt> Contents... </tt>
Example: The below example illustrates the <tt> tag in HTML:
HTML
< html >
< body >
< h1 >GeeksforGeeks</ h1 >
< h2 >tt Tag</ h2 >
< tt >GfG stands for GeeksforGeeks</ tt >
< p >< tt >It is a computer science portal for geeks</ tt ></ p >
</ body >
</ html >
|
Output:

Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
18 Sep, 2023
Like Article
Save Article