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.
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.
Sign up to join this communitySome 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.
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.
Right
or Right arrow
or →
?
Dec 4, 2020 at 9:40
Use the kbd
tag:
<kbd>Ctrl</kbd>+<kbd>E</kbd>
The rendered output would look like this:
Ctrl+E