Greater Than Sign (>) and Less Than Sign (<)
| Less, ≫ ≪ | |
|---|---|
| Meaning | 5 > 3 "5 is greater than 3", 3 < 5 "3 is less than 5" |
| Keyboard | Shift + . for >, Shift + , for < (US layout) |
| HTML | > and < |
| LaTeX | $>$ and $<$ in math mode |
| Unicode | U+003E and U+003C |
Which one is the greater than sign?
It is >: its wide, open side faces the bigger number and its point faces the smaller one. Read 7 > 2 left to right as "7 is greater than 2". The less than sign < is the mirror image: 2 < 7, "2 is less than 7". Both statements say the same thing.
How do you type > and <?
On a US keyboard they share keys with the period and comma: Shift + . gives > and Shift + , gives <. Many European layouts have a separate key for both next to the left Shift.
Why does HTML need < and >?
In HTML, < starts a tag, so text like "a <b" can be read as the start of a <b> element and break the page. Write it as < in text. > is not strictly required, but most tools escape both. The LaTeX to HTML converter escapes them for you.
Why does LaTeX print ¡ instead of <?
In normal text with the default font encoding, the keys < and > print the Spanish marks ¡ and ¿. In math mode, $<$ and $>$ work correctly. In text, use \textless and \textgreater, or load \usepackage[T1]{fontenc}. \gg and \ll give "much greater" ≫ and "much less" ≪.
Text mode: 3 < 5 and 5 > 3 \quad Fixed: 3 \textless{} 5 and 5 \textgreater{} 3
Math mode: $3 < 5$, $5 > 3$, $x \gg 1$, $\epsilon \ll 1$Full document you can compile
\documentclass{article}
\begin{document}
Text mode: 3 < 5 and 5 > 3 \quad Fixed: 3 \textless{} 5 and 5 \textgreater{} 3
Math mode: $3 < 5$, $5 > 3$, $x \gg 1$, $\epsilon \ll 1$
\end{document}What about greater than or equal?
Why the keys < and > need care in LaTeX text is part of the special characters guide; in math mode, try them in the equation editor. ≥ and ≤ have their own page, greater than or equal to, and so does the not equal sign.
Sources
- WHATWG HTML Standard, named character references, read Nov 29, 2026
- LaTeX2e: An unofficial reference manual, Text symbols, read Nov 29, 2026
Text drafted with AI from the cited references; the LaTeX example and its ¡ ¿ output compiled with TeX Live 2026; checked by Cem Demir. See the editorial policy.