Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

What characters can be used for up/down triangle (arrow without stem) for display in HTML?

I'm searching for an HTML or ASCII character which is a triangle facing up or down so I can utilize it as a toggle switch.

I found ? (↑), and ? (↓) - however, those have a restricted stem. I'm searching only for the HTML bolt "head".
by

2 Answers

ninja01
Unicode arrows heads:

? - U+25B2 BLACK UP-POINTING TRIANGLE
? - U+25BC BLACK DOWN-POINTING TRIANGLE
? - U+25B4 SMALL BLACK UP-POINTING TRIANGLE
? - U+25BE SMALL BLACK DOWN-POINTING TRIANGLE
For ? and ? use ▲ and ▼ respectively if you cannot include Unicode characters directly (use UTF-8!).
kshitijrana14
Since you're using these arrows for a toggle switch you may want to consider creating these arrows with an html element using the following styles instead of unicode characters.
.upparrow {
height: 0;
width: 0;
border: 4px solid transparent;
border-bottom-color: #000;
}

.downarrow {
height: 0;
width: 0;
border: 4px solid transparent;
border-top-color: #000;
}

Login / Signup to Answer the Question.