30

Some of the questions / answers here have cool images of a key to press, like Esc, but it looks like a key.

How do I do that? I cannot see it documented in the editing FAQ or in https://superuser.com/editing-help or in the Markdown documentation.


Update:

With the answers below, this should do it: <kbd>Ctrl</kbd>

Ctrl

And it does!

It also seems that the request to add this to the documentation has not yet been completed.

2

2 Answers 2

27
<kbd>Ctrl</kbd>

Ctrl

1

It's <kbd> and </kbd>.

2
  • Now that I have the code of <kbd> I search and I think it still needs to be added per this post: meta.stackexchange.com/questions/36785/…
    – drewk
    Commented May 6, 2010 at 2:54
  • 3
    Doesn't work in comments, unfortunately... Commented Aug 3, 2011 at 16:01

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