Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the HTML entities for up and down triangles?

Tags:

html

entity

I've found the outlined versions, but I want the solid up and down triangles.

Does anyone know these entities?

like image 817
alex Avatar asked Feb 18 '10 23:02

alex


People also ask

What are the entities of HTML?

An HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces).

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

1 Answer. For ▲ and ▼ use ▲ and ▼ respectively if you cannot include Unicode characters directly (use UTF-8!).

How do I type math symbols in HTML?

Many mathematical, technical, and currency symbols, are not present on a normal keyboard. To add such symbols to an HTML page, you can use the entity name or the entity number (a decimal or a hexadecimal reference) for the symbol.


2 Answers

All named HTML entities are specified in chapter 24 of the HTML standard. The only thing missing from the page are rendered entities, but you can easily create your own copy with the additional information by applying a simple regexp:

s/<!ENTITY (\S+)/<!ENTITY \1 &\1;/ 

Not all entities are named. For many, you need to specify the Unicode code page, either in decimal (▲ ▲, ▼ ▼) or hex (▲ ▲, ▼ ▼).

like image 94
outis Avatar answered Oct 04 '22 23:10

outis


A little but late, but you can use ▾ ▾, and ▴ ▴, to make both the up and down filled in triangles. I was looking for it myself and the alt codes didn't help so I decided to share this. This same thing works for both left and right as well.

like image 34
Brian Leishman Avatar answered Oct 04 '22 22:10

Brian Leishman