On the Q&A Askbot site I most regularly contribute to, I sometimes indicate keyboard input by means of the back-ticks to get the monospace font, e.g. `Esc`, `F1`, etc. However, this is the "code" markup, and is the same style as `$foo = bar('baz');`. It works as a "fudge", but having `code` and `kbd` visually distinct would be preferable.
I have noticed that another Q&A implementation gives both code and "kbd" options, with distinct styling. The "kbd" style simply uses the [standard HTML tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd) (with a bit of CSS applied, of course!).
It struck me that this would be a simple but useful enhancement for Askbot, too, so note it here as a suggestion.
Thanks!
↧