Font stack test
Help!
The function to calculate the sum is sum(a, b).
function greet(name) {
console.log("Hello, " + name + "!");
}
greet("World");
Press Ctrl + C to copy.
The program returned: Error: File not found.
This is teletype text.
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.
Comments
Post a Comment