Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <tt> tag.

Use of <tt> tag

The <tt> tag defines the teletype type in a HTML document or page.
If you have to use <tt> tag for keyboard input,use <kbd>, for computer code, use <code> tag, for variable use <var> tag, for keyboard output use <samp> tag.

Display:Inline

Example of <tt> tag

    <tt>This is the teletype texts </tt>

Supported Browsers.

Tag
<tt> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
Press <tt> Ctrl + Z </tt> to undo the action.
</p>
</body>
</html>

Output

Press Ctrl + Z to undo the action.

More Reference

The <tt> tag is not supported in HTML5.Use CSS instead.
By default,the <tt> element is rendered using the browser's default non-proportional font.

Default CSS properties of <tt> tag

tt {
font-family: "Lucida Console", "Menlo", "Monaco", "Courier",monospace;
}