Open In App

HTML <tt> Tag

Last Updated : 22 Dec, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

The <tt> tag is the abbreviation of teletype text & is used to define the teletype-type text in HTML 4, but now depreciated from HTML5. We can achieve this with the help of semantic elements, like <kbd>, <var>, <code>, and <samp>, or we can use the various CSS for styling.

Syntax

<tt> Content... </tt>

Example: The below example illustrates the <tt> tag in HTML.

HTML




<html>
  
<body>
    <h1> GeeksforGeeks</h1>
    <h2>tt Tag</h2>
  
    <!-- HTML tt Tag is used here-->
    <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 1 and above
  • Edge 12 and above
  • Firefox 1 and above
  • Opera 15 and above
  • Safari 4 and above

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads