55

As part of an edit, I'm adding <kbd> tags to various user keystrokes mentioned in a question. I can't figure out the proper way to handle arrow keys.

Left arrow?

<-?

Left?

All the options I can think of seem bad.

6
  • 9
    How about and ? Commented Apr 5, 2019 at 12:01
  • @double-beep Much better. Where do you get those? (Because I need up and down arrows too.)
    – user2201041
    Commented Apr 5, 2019 at 12:04
  • 14
    Just google for "Unicode" and "arrows". Copy, paste, done.
    – honk
    Commented Apr 5, 2019 at 12:07
  • 3
    Found up: ↑ and down: ↓. Commented Apr 5, 2019 at 12:08
  • On Linux (Gnome at least): AltGr + Shift + U = ; AltGr + I = ; AltGr + U = ; AltGr + Y = , although it probably only works on some keyboard layouts, like on the German one, but with AltGr + Z = instead. Commented Apr 5, 2019 at 20:54
  • Unicode arrows.
    – 41686d6564
    Commented Apr 7, 2019 at 3:46

5 Answers 5

74

After searching, I found the arrows you want. Copy-paste each time the appropriate:

<kbd>↑</kbd>
<kbd>↓</kbd>
<kbd>→</kbd>
<kbd>←</kbd>

Output:

The arrows can be found in chat or in Wikipedia.

3
  • 27
    You can probably use HTML entities also: <kbd>&larr;</kbd> etc.
    – TiiJ7
    Commented Apr 5, 2019 at 12:13
  • 6
    Windows Character Map application has a nice selection of characters too: ▲►▼◄ and there are more ☻.
    – Sinatr
    Commented Apr 5, 2019 at 14:20
  • 1
    On Linux computers you can use a compose-key (search your keyboard settings) and then enter at least some arrows directly.
    – Alfe
    Commented Apr 5, 2019 at 14:50
98

The HTML entity codes for directional arrows are pretty intuitive:

Direction HTML Entity Code Shorthand HMTL Entity Code Result
Up &uparrow; &uarr;
Down &downarrow; &darr;
Left &leftarrow; &larr;
Right &rightarrow; &rarr;
0
7

Since this is meta, and people might get scolded and referred to this question in the future if they type Left instead of , I'd like to propose that Left is just as valid and understandable as , and I currently see it being used frequently.

Personally, I prefer the clarity of reading the word Left instead of the standard arrow symbol with its narrow head. The added convenience of not having to copy/memorize the arrow symbols when typing makes a big difference when writing as well (not that &larr; is all that hard to memorize). Being inside a <kbd> is more than enough context to indicate that you're referring to the left arrow.

5
  • 10
    I don't know about that... when I see "Left", the first thing I would think is "left what?". An arrow that points left is a lot more clear.
    – cs95
    Commented Apr 5, 2019 at 20:30
  • @coldspeed My exposure to instructions where keys on the left vs right matter is limited (such as in remote viewers), but to me, If the text doesn't explicitly specify "left what", as in <kbd>Left Ctrl</kbd>, or <kbd>Left ^</kbd>, it's clear to me that it's referring to the left arrow. But again, I don't have any exposure to documentation where <kbd>Left</kbd> could be ambiguous.
    – RToyo
    Commented Apr 5, 2019 at 20:52
  • 2
    @RToyo For many of the users on this site, English is not their first language, and so arrows would be more readily understandable to them (as well as to those of us for whom English is our first language).
    – RobH
    Commented Apr 5, 2019 at 21:34
  • 2
    If "Left" were just as valid and understandable as "←", maybe I would have seen at least one keyboard with that style of label on its arrow keys. I can't remember having seen any such thing, so either it's vanishingly rare, or I have repressed the memory. Commented Apr 6, 2019 at 6:00
  • @NathanTuggy I have never seen "Left" written on a keyboard either, but I've also never seen a keyboard whose arrows have a shaft as long as the arrow in the <kbd> tag either. Nor have I seen the full spelling of "control" on the ctrl key. Some keyboards also don't write "tab" on the tab key, or "caps lock", or "page up/down", or "backspace", etc, in favour of icons. Keys on a keyboard only have a couple centimetres to portray a key, but fortunately our answers on Stack Exchange can be a little bit larger...
    – RToyo
    Commented Apr 8, 2019 at 13:10
4

On Windows 10, you can use Alt+NumPad codes for this: Alt+24 for , Alt+25 for , Alt+26 for , and Alt+27 for .

Beware of "Unicode arrows" sites: some of the arrows they feature won't display properly on some mobile devices (some didn't on my 2017 Samsung phone), and probably won't on older systems either.

The above ones work 100% of the time AFAIK.

2
  • 1
    That should be Alt + NumPad 2 + NumPad 4, etc., since they don't work with the top row numbers. Also, those key combinations enter a Unicode sequence which results in an arrow (8593 in the case of up arrow). As far as "Unicode arrows" sites, the official site for Unicode is a good place to start :) Commented Apr 8, 2019 at 22:36
  • 1
    @HereticMonkey Edited to make it clear(er) that Alt codes in Windows use the numpad. Re: Unicode, I know these arrows are Unicode, but they are only 4 and they work. Unicode sites present you with hundreds of different arrows, and you might pick the wrong ones.
    – walen
    Commented Apr 9, 2019 at 5:31
3

This looks close

       

For copy/pasting:

<kbd>▲</kbd>
<kbd>◄</kbd>
<kbd>▼</kbd>
<kbd>►</kbd>
4
  • 3
    Our princess would surely not live in that castle.
    – Cody Gray Mod
    Commented Apr 9, 2019 at 6:59
  • @CodyGray - Sorry, I should have included the flag pole for you in there. Next time.
    – Travis J
    Commented Apr 9, 2019 at 7:25
  • 1
    I think these are much clearer than the arrows suggested above, especially if your eyesight is failing. Could you edit and add the code formatted markdown code for those arrows, please? I tried to click the edit link to see the actual markdown but "Suggested edits are not allowed on non-tag-wiki posts on meta sites." Commented Mar 9, 2021 at 3:24
  • 2
    @Greenonline - Those are just unicode arrows wrapped in <kbd>. You can copy the text for them, for example ▼, and then just use <kbd>▼</kbd>
    – Travis J
    Commented Mar 9, 2021 at 7:01

You must log in to answer this question.