For monospaced font use <tt> tag on
your HTML page.
<tt> tag: “used to display each letter with same width on an
HTML page”
Syntax:
<tt>
// content
</tt>
Using this <tt> tag we can display each
letter with the same width. <tt> tag has
also its
corresponding</tt> tag. Each letter of an
alphabet has different widths like ‘w’ is
wider than ‘i’ so to overcome this we can use a monospaced font. The monospaced font
displays each letter with the same width.
Note:- According to HTML5, this tag has been deprecated and is
now obsolete. We'll learn more about deprecated tags in the upcoming tutorial.