A short instruction marks key presses with kbd and a function name with code so the browser renders each kind of inline token differently.

Program

Inline semantic elements keep prose readable while marking special tokens such as keyboard input and code identifiers.

code_kbd_inline.html
<p>
  Press <kbd>Ctrl</kbd> + <kbd>/</kbd>
  to toggle <code>commentLine()</code>.
</p>
kbd The kbd element marks user keyboard input.
code The code element marks a fragment of computer code inside prose.