27

Is there a way to format (style) keyboard keys like CTRL?

6
  • 4
    Depending on the site, you can use: <kbd>KEY</kbd> Sep 6, 2014 at 11:31
  • @Louis Thx alot!
    – toesslab
    Sep 6, 2014 at 11:33
  • 1
    @pc-shooter You're welcome. Yes, this is the right place but the way you initially put it, I had to do a double take before I figured you were talking about how to style text in posts. At first, it looked like a post from someone who meant to ask a question on the main site but posted to Meta by mistake.
    – Louis
    Sep 6, 2014 at 11:34
  • @Louis The "markdown" Part was the lack of knowledge ;-) So everything from MarkDown can be uesd then?
    – toesslab
    Sep 6, 2014 at 11:35
  • 5
    @pc-shooter you probably want to look at: stackoverflow.com/editing-help - that details all the markdown and inline HTML supported for SO Sep 6, 2014 at 11:36
  • This isn't supported by Markdown, so while Louis is technically correct, it is really not applicable to this question. You have to fall back to the supported subset of HTML tags.
    – Cody Gray Mod
    Sep 8, 2014 at 6:48

1 Answer 1

30

You can use the HTML <kbd> tag:

CTRL

<kbd>CTRL</kbd>
1
  • 3
    FYI, this doesn't work in comments, only answers/questions. Mar 4, 2020 at 22:46

You must log in to answer this question.

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