454

Some answers contain characters that look like keyboard keys. They look like

Ctrl + E

What markup do I need to add to make Ctrl and E look like actual keys?
That's not mentioned in the formatting help.

5
507

Use the

<kbd>

tag, like <kbd>Shift</kbd>+<kbd>Enter</kbd> for Shift+Enter.

After this answer was accepted, the <kbd> tag was disabled on Meta. It then still worked on SO, SF and SU. Meanwhile it has been enabled on Meta again as well.

1
  • Is there a correct word to use for arrow keys? eg Right or Right arrow or ? – IanVaughan Dec 4 '20 at 9:40
76

Use the kbd tag: <kbd>Ctrl</kbd>+<kbd>E</kbd>.

Ctrl+E

0

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