Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

I'm looking for an HTML or ASCII character which is a triangle pointing up or down so that I can use it as a toggle switch.

I found ↑ (↑), and ↓ (↓) - but those have a narrow stem. I'm looking just for the HTML arrow "head".

1 Answer

0 votes
by (40.7k points)

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!).

Note: try using the large versions in smaller font.

For more Unicode arrows refer to these links:

http://en.wikipedia.org/wiki/Arrow_%28symbol%29#Arrows_in_Unicode

http://en.wikipedia.org/wiki/Geometric_Shapes

Lastly, these arrows are not ASCII, including ↑ and ↓: they are Unicode.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 25, 2021 in Web Technology by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...