HTML contains several elements for defining user input and computer code.
<code>
x = 5;
y = 6;
z = x + y;
</code>
HTML <kbd> For Keyboard Input
The HTML <kbd> element is used to define keyboard input. The content inside is displayed in the browser’s default monospace font.
HTML <samp> For Program Output
The HTML <samp> element is used to define sample output from a computer program. The content inside is displayed in the browser’s default monospace font.