Web Development

HTML – TT (Teletype) and KBD (Keyboard) Tag

HTML <TT> (Teletype) Element 

The content of a <tt> element is written in monospaced font (like that of a teletype machine).   <tt> provides no semantic information about the text it encloses. It is purely used for text formatting purposes. <tt> is short for teletype, and instructs the browser to render the text similar to that produced by old-style teletype machines, which is understood to be a fixed-width (monospace) font.

HTML Code:

the following word will appear in <tt> monospaced</tt> font.

Output:

the following word will appear in a monospaced font.

HTML <kbd> Element. 

The <kbd> element is used for text typed on a keyboard. If when talking about a computer, you want to tell a reader to enter some text, you can use the <kbd> element to indicate what should be typed.

HTML Code

<p> The shortcut key for bold the text <kbd>ctrl</kbd>and<kbd>b</kbd> </p>

HTML Output

The shortcut key for bold the text ctrl and b You can see above the word ctrl and b are displayed in monospaced font after using <kbd> element. The content of the <kbd> element is usually represented in a monospaced font, rather like a <code> element. 

Tuts

About Author

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.

You may also like

HTML introduction
Web Development

HTML – Introduction, History & Syntax

  • December 21, 2019
So, first of all, I would like to ask a question for the first time when you heard this term
html heading tag
Web Development

HTML – Heading Tag With Syntax

  • December 21, 2019
A heading tag is one of the most important tags we focus on in HTML or web development because, without