Examples of Fixed-Width Font Elements

<code>

To declare a variable in JavaScript, you can use let myVariable = "Hello";.

<pre>

  <!DOCTYPE html>
  <html>
  <head>
    <title>My Page</title>
  </head>
  <body>
    <h1>Welcome</h1>
  </body>
  </html>
  

<kbd>

To save your document, press Ctrl + S.

<samp>

When running the command, you might see the output: Installation complete!

<tt> (Deprecated, use CSS instead)

This is an example of deprecated teletype text.

Customizing with CSS

You can apply a monospace font to any element using CSS:

This text is styled with CSS to be monospace.

Home Page

For Micro-T1 encoding, Char 0x00 prints €, while 0x80 prints ¢.