HTML entities for comparison symbols
| Symbol | Name | HTML | Unicode | Decimal |
|---|---|---|---|---|
| > | Greater-than sign | >> | U+003E | 62 |
| ≥ | Greater-than or equal to | ≥≥ | U+2265 | 8805 |
| ⩾ | Greater-than or slanted equal to | ⩾⩾ | U+2A7E | 10878 |
| ≫ | Much greater-than | ≫≫ | U+226B | 8811 |
| < | Less-than sign | << | U+003C | 60 |
| ≤ | Less-than or equal to | ≤≤ | U+2264 | 8804 |
| ⩽ | Less-than or slanted equal to | ⩽⩽ | U+2A7D | 10877 |
| ≪ | Much less-than | ≪≪ | U+226A | 8810 |
| ≠ | Not equal to | ≠≠ | U+2260 | 8800 |
| ≈ | Almost equal to | ≈≈ | U+2248 | 8776 |
| ≡ | Identical to | ≡≡ | U+2261 | 8801 |
| ± | Plus-minus sign | ±± | U+00B1 | 177 |
Code snippets
| Language | ≥ (U+2265) | > (U+003E) |
|---|---|---|
| HTML | ≥ ≥ ≥ | > > |
CSS content | "\2265" | "\3E" |
| JavaScript / JSON | "\u2265", String.fromCodePoint(0x2265) | "\u003E" |
| Python | "\u2265", chr(8805) | chr(62) |
| Java / C# | "\u2265" | "\u003E" |
| URL encoding | %E2%89%A5 | %3E |
| UTF-8 bytes | E2 89 A5 | 3E |
Do I need to escape > in HTML?
< must be escaped as < in text because it can start a tag. A bare > is technically allowed in normal text, but escaping it as > is the safe convention – and it is required inside some contexts such as XML. Inside attribute values always escape quotes, and prefer entities for < and >. On a UTF-8 page you can paste ≥ directly; entities are only needed if your editor or CMS mangles special characters.
Frequently asked questions
What is the HTML entity for greater than?
> (or >). For greater than or equal to use ≥ (or ≥).
How do I add ≥ with CSS?
Use the escape in a pseudo-element: .min::before { content: "\2265"; }
What is the JavaScript code for ≥?
Use the string "\u2265" or String.fromCodePoint(0x2265). The comparison operator itself is >=.