HTML contains several elements for defining user input and computer code. These elements are rendered with monospaced fonts.
| Tag | Description |
|---|---|
| <code> | Inline computer code |
| <kbd> | Keyboard input |
| <samp> | Sample output from program |
| <var> | Variable in math/programming |
| <pre> | Preformatted text block |
Edit the code below and click Run to see the result live.