Greater Than Sign (>) and Less Than Sign (<)

Less, ≫ ≪
Meaning5 > 3 "5 is greater than 3", 3 < 5 "3 is less than 5"
KeyboardShift + . for >, Shift + , for < (US layout)
HTML&gt; and &lt;
LaTeX$>$ and $<$ in math mode
UnicodeU+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 &lt; and &gt;?

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 &lt; in text. &gt; 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" ≪.

LaTeX
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$
OutputIn text mode, 3 < 5 prints as 3 inverted exclamation mark 5; fixed with textless and textgreater; in math mode the signs and much greater and much less signs print correctly.
Full document you can compile
example.tex
\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.

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.