kbd element
The <kbd> element is used to define keyboard input. The text inside the element is typically displayed in a monospace font by default.
Example:
To save your document, press Ctrl + S.
samp element
The <samp> element is used to define sample output from a computer program or system. The text inside the element is typically displayed in a monospace font by default.
Example:
System Output: Hello, World!
code element
The <code> element is used to define a piece of computer code. The text inside the element is typically displayed in a monospace font by default.
Example:
function greet() { console.log("Hello, World!"); }
var element
The <var> element is used to define a variable in a mathematical expression or programming context. The text inside the element is typically displayed in italics by default.
Example:
The area of a rectangle is calculated as A = length × width.
pre element
The <pre> element is used to define preformatted text. Text inside a
element is displayed in a fixed-width font, and whitespace (such as spaces and line breaks) is preserved.
Example:
function helloWorld() {
console.log("Hello, World!");
}