Since Stack Exchange already supports <kbd>
for text input, it only makes sense to support the matching output from a program, <samp>
, distinctly from the program <code>
itself.
If there is value to supporting <pre>
and these others in addition to Markdown's backticks and indent, adding <samp>
would provide similar value, both in allowing HTML to be pasted and supported, as well as styling context (such as not attempting to syntax highlight the content).
samp
element is not supported in Stack Overflow markup.