Related Articles

Related Articles

HTML | <tt> Tag
  • Difficulty Level : Basic
  • Last Updated : 13 Oct, 2020

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 purpose.
Syntax: 

<tt> Contents... </tt>

Below example illustrates the <tt> tag in HTML:

Example: 

HTML

filter_none

edit
close

play_arrow

link
brightness_4
code

<html>
    <head>
        <title>tt Tag</title>
        <style>
            body {
                text-align:center;
            }
            .gfg {
                font-size:40px;
                font-weight:bold;
                color:green;
            }
            .geeks {
                font-size:25px;
                font-weight:bold;
            }
        </style>
    </head>
    <body>
        <div class = "gfg">GeeksforGeeks</div>
        <div class = "geeks"><<b>tt</b>> Tag</div>
         
<p><tt>GFGstandsforGeeksforGeeks</tt></p>
 
         
<p><tt>It is a computer science poratl forgeeks</tt></p>
 
    </body>
</html>                                       

chevron_right


Output: 



Supported Browsers: The browser supported by <tt> tag are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

 

full-stack-img




My Personal Notes arrow_drop_up
Recommended Articles
Page :