greater than symbol
About greater than symbol
> is the greater than symbol, a fundamental mathematical comparison operator used to indicate that one value is larger than another. The greater than symbol is one of the most essential and frequently used symbols in mathematics, appearing in arithmetic, algebra, calculus, statistics, and virtually every branch of quantitative reasoning. For example, 5 > 3 reads as "five is greater than three," and the greater than symbol points its open end toward the larger value, with the pointed end indicating the smaller quantity.
The greater than symbol > consists of a pair of diagonal lines meeting at a sharp point on the right, creating an angle that opens toward the left. As a Unicode character officially named GREATER-THAN SIGN, the greater than symbol holds codepoint U+003E within the basic ASCII set, ensuring universal compatibility across all fonts, operating systems, and programming environments. The greater than symbol is also a critical character in HTML and XML, where it serves as the closing delimiter for tags (e.g., <html>).
【Mathematical Applications】 The greater than symbol is used in inequalities to express relationships between quantities, such as x > 10 (x is greater than 10). In combination with the equals sign, it forms ≥ (greater than or equal to). The greater than symbol is also foundational in number lines, interval notation, and comparative analysis across all STEM fields. Its counterpart, the less than symbol <, works in tandem with the greater than symbol to enable comprehensive comparison operations in mathematics and computer science.
【Programming and Markup Use】 Beyond mathematics, the greater than symbol plays a vital role in computer science: it is used as a comparison operator in programming languages (e.g., if (x > 5)), and as the closing bracket for HTML and XML tags. In some languages, >> represents the right shift operator or the output redirection operator in command-line interfaces. Because of its dual role in markup and math, the greater than symbol must be carefully escaped in HTML as > to avoid being interpreted as a closing tag.
How to Type greater than symbol
Windows Input
Method 1: Press the > key directly on your keyboard (located next to the M key on US keyboards, accessed with Shift + .); Method 2: Hold Alt and type 62 on the numeric keypad; Method 3: Type da yu (Chinese pinyin for "greater than") in the Microsoft Pinyin input method and look for > in the candidate list.
Mac Input
Method 1: Press the > key directly on your keyboard (on US keyboards, this is the period key with Shift); Method 2: Press Control + Command + Space to open the Character Viewer and search for "greater-than sign".
HTML/CSS Input
HTML: > or > or >; CSS: content: "\003E";
LaTeX Input
In LaTeX math mode, type > directly or use \textgreater in text mode (requires the amstext package). For proper spacing in math, use > directly, which automatically renders with appropriate spacing around the operator.
greater than symbol FAQ
What is the difference between the greater than symbol > and the right angle bracket ⟩?
The greater than symbol > (U+003E) is a mathematical comparison operator used to indicate inequality. The right angle bracket ⟩ (U+27E9) is a typographic bracket used in mathematical notation to represent inner products, bra-ket notation in quantum mechanics, and sometimes in linguistics. While they look similar, the greater than symbol has sharper angles and serves a purely comparative function, whereas angle brackets serve as delimiters and grouping symbols.
How do I type the greater than symbol > on a keyboard without a dedicated > key?
On keyboards without a dedicated greater than symbol > key, you can: ① On US keyboards, the greater than symbol is located above the period key, accessed by pressing Shift + .; ② On UK keyboards, press Shift + > (next to the Z key); ③ On Windows, hold Alt and type 62 on the numeric keypad; ④ On Mac, the same keyboard shortcuts apply depending on your keyboard layout.
Why do I need to use &gt; in HTML instead of typing > directly?
In HTML, the greater than symbol > is not technically required to be escaped as > in most contexts, but it is good practice to do so for consistency and to avoid parsing issues. While a raw > is generally safe outside of tag contexts, using the HTML entity > ensures the greater than symbol displays correctly and aligns with the encoding practices for the less than symbol, which must be escaped to avoid being parsed as an opening tag.
What is the Unicode codepoint for the greater than symbol >?
The Unicode codepoint for the greater than symbol > is U+003E. Its decimal HTML entity is > and its hexadecimal entity is >. The named HTML entity is >. The greater than symbol resides in the basic ASCII block and is one of the oldest and most universally supported characters in computing.
What is the mnemonic for remembering the greater than symbol direction?
A common mnemonic for the greater than symbol > is that the open side (the "mouth") points toward the larger number, and the closed point indicates the smaller number. The "greedy alligator" mnemonic is particularly popular: the alligator always eats the bigger number, so its mouth opens toward the larger value. For example, in 5 > 3, the open side of the greater than symbol faces the 5, indicating that 5 is the larger value.