Tutorialspoint.dev

HTML | <tt> Tag

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
    <head
        <title>wbr 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>                                        

Output:

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

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


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter