Continue
Monospaced Font
The content of a <tt>...</tt> element is written in monospacedfont. Most of the fonts are known as variable-width fonts because different letters are of different widths (for example, the letter 'm' is wider than the letter 'i'). In a monospaced font, however, each letter has the same width.
Example
<!DOCTYPE html>
<html>
<head>
<title>Monospaced Font Example</title>
</head>
<body>
<p>The following word uses a <tt>monospaced</tt> typeface.</p>
</body> </html>
This will produce the following result:
The following word uses a monospaced typeface.
Comments
Post a Comment