I would like to use the
<kbd> tag in a comment to refer to a keyboard shortcut. Is there a reason why this doesn't seem to be possible? I've tried it at the webapps stackexchange.
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
No, you cannot.
Comments only support a very limited form of markdown syntax, affectionately called "mini-markdown". And they definitely don't support HTML tags, which are required for
It's relatively rare to need to display keyboard shortcuts in comments. If you need this much formatting, you should probably be posting an answer instead.