HTML - <tt> Tag



The HTML <tt> tag specifies teletype text.

This tag is no longer recommended as it is deprecated and not supported in the HTML5. Instead you can use the <pre> , <kbd> tags.

Example

Let's look at the following example, where we are going to use the <tt> tag.

<!DOCTYPE html>
<html>

   <head>
      <title>HTML tt Tag</title>
   </head>

   <body>
      <p>tutorialspoint</p>
      <tt>learning website</tt>
   </body>

</html>

When we run the above code, it will generate an output consisting of the text displayed on the webpage.

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Advertisements