7

In questions/answers we type keyboard keys using <kbd>KEY</kbd> which renders KEY. It does not work in comments. How can one type keyboard keys in comments?

3
  • As said above typing <kbd>KEY</kbd> does not work in comments.
    – Viesturs
    Oct 26, 2021 at 6:24
  • 3
    Formatting options are intentionally limited in comments. In particular, there is no markup for displaying keyboard keys in comments. Oct 26, 2021 at 8:56
  • 1
    Generally people use code formatting to type keyboard keys in comments, because <kbd> is not available. Or just no formatting at all, or italics or bold. Click Help next to the comment box to check which formatting is available for comments and how to use it (the only other thing that works besides the formatting I already mentioned is link formatting).
    – Marijn
    Oct 27, 2021 at 14:09

1 Answer 1

7

Comments provide only a limited amount of markdown formatting, including italic, bold, code (via single/double backticks), magic/shorthand links (for sites [tex.se] or tag [tag:tag] or...), regular links (like [text](URL)). This excludes the use of HTML tags (like <strong>bold</strong>) and the shorthand image inclusion format ![text](imageURL) commonly used in posts.

So there's not HTML <kbd>...</kbd> keyboard tag formatting supported.

Reference: Markdown help - comment formatting

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .