Tagg the Builder saysComputer-code tags mark up code and output: <code>, <pre>, <kbd>, <samp>, and <var>.
When you show code, use the right tags. <code> marks an inline snippet (monospace). <pre> preserves whitespace and line breaks — wrap a <code> in a <pre> for a multi-line block. <kbd> marks keyboard input, <samp> program output, <var> a variable.
These carry meaning and get sensible default styling, so screen readers and copy/paste behave correctly — better than faking it with a styled span.