The less than sign is the symbol <. It means "smaller than" or "comes before," and in most programming languages it also opens a tag or marks a comparison. Its boundary matters: < always points its narrow end toward the smaller value, so 3 < 5 reads as "3 is less than 5" and is true, while 5 < 3 is false. That single rule explains nearly every use you'll meet, from a math worksheet to an HTML file to a spreadsheet formula.
The symbol's shape carries its meaning. Think of a crocodile's mouth: the open jaw faces the bigger number, and the point faces the smaller one. Writers sometimes call this the "alligator method," and it works because the wide end sits beside the larger quantity. Once you internalize that picture, you stop second-guessing which way the sign goes. Everything else on this page is a variation on that one orientation rule, plus the practical question of how to type the character on keyboards that hide it.
The sign has a twin, >, which reverses the relationship. It also has a cousin, ≤, which adds "or equal to." And it has a coding life where it does far more than compare numbers, opening and closing angle brackets in markup. I'll walk through each context with concrete examples, the keys you press, the traps that catch people, and the errors you can expect when the sign ends up in the wrong place.
Where the Less Than Sign Appears in Math and How to Read It
In arithmetic and algebra, < is a strict inequality. It states that the value on its left is smaller than the value on its right, with no allowance for equality. So 4 < 9 is true, 9 < 4 is false, and 7 < 7 is also false because the two sides match. If you want to include equality, you need the "less than or equal to" sign, ≤, which makes 7 ≤ 7 true. Confusing the strict and inclusive forms is the most common student error on inequality exercises.
Reading the sign aloud settles most doubts. In the expression 2x + 1 < 11, say "two x plus one is less than eleven." Solving it gives 2x < 10, then x < 5, which means any number smaller than 5 satisfies the original statement. Test it: plug in 4, and you get 9 < 11, true. Plug in 5, and you get 11 < 11, false. That second test is how you confirm you kept the strict version rather than silently switching to ≤. A quick substitution check catches the mistake faster than rereading the steps.
The sign is also the backbone of interval notation in algebra and calculus. The open interval from 1 to 4 is written 1 < x < 4, meaning x sits strictly between the two endpoints, excluding both. If the endpoints are allowed, the compound inequality becomes 1 ≤ x ≤ 4. Number lines draw the strict version with open circles at the endpoints and the inclusive version with filled circles. That visual convention matters on exams, because an open circle versus a closed one carries the entire difference in meaning.
One edge case trips up nearly everyone: multiplying or dividing an inequality by a negative number flips the sign. Start with -2x < 8. Divide both sides by -2, and the correct result is x > -4, because dividing by a negative reverses the relationship. Skip the flip, and you get x < -4, which is exactly wrong. Check by testing a value in your answer: x = 0 gives 0 < 8, true, and x = 0 satisfies x > -4. That single verification step—substituting a number back in—catches the flipped-sign error almost every time.
Typing the < Character on Windows, Mac, and Mobile Keyboards
On a standard US keyboard, < sits on the comma key, to the left of the "Z" row's right neighbor. You press Shift plus the comma key. On UK and many European layouts, the character moves to the key left of "Z," again with Shift. Keyboard layout, not brand, decides the position, so a Mac and a Windows machine using the same US layout place < identically. If your key produces a comma instead, you forgot Shift. If it produces nothing, you may have accidentally switched input languages.
For Windows machines without a direct key, the Alt code route works: hold Alt and type 60 on the numeric keypad, then release. The number 60 is the ASCII decimal code for <. On laptops without a separate numeric keypad, this fails—the number row won't register—so use the on-screen keyboard or Character Map. In Microsoft Word, typing 2264 followed by Alt+X inserts ≤ (less than or equal), and 003C followed by Alt+X inserts <. Those shortcuts save a trip to a symbol menu.
Mac users have an easy fallback: the Emoji & Symbols panel, opened with Control+Command+Space, lets you search "less than" and insert either < or ≤. On phones, the symbol lives behind the numeric and punctuation layer of the keyboard. On iPhone, tap the "123" key, then look for < on the second punctuation page or long-press the comma. On Android's Gboard, tap "?123" and then the "=<" key to reveal math symbols. The squeeze is that < is rarely on the first punctuation screen on mobile.
If the sign refuses to appear at all, suspect a keyboard remapping or an input-method editor. Windows' on-screen keyboard (search "On-Screen Keyboard" in the Start menu) confirms whether the physical key is dead. For HTML authors, the alternative is the entity <, which renders as < in the browser; that escape matters because a literal < in HTML would otherwise start a tag. Keep the numeric code 60 and the entity < in mind whenever a plain keystroke fails.
Less Than vs. Greater Than: A Side-by-Side Comparison
The two signs are mirror images, and the only reliable way to tell them apart is to read left to right. < points left, meaning the left value is smaller. > points right, meaning the right value is larger. 3 < 7 and 7 > 3 describe the same relationship, just from opposite ends. Students who memorize "the point goes toward the small number" never need the alligator mnemonic again.
| Sign | Name | Example | Plain-English reading | True or false |
|---|---|---|---|---|
| < | Less than | 4 < 6 | 4 is smaller than 6 | True |
| > | Greater than | 6 > 4 | 6 is larger than 4 | True |
| ≤ | Less than or equal | 5 ≤ 5 | 5 is at most 5 | True |
| ≥ | Greater than or equal | 5 ≥ 6 | 5 is at least 6 | False |
| ≠ | Not equal | 5 ≠ 5 | 5 differs from 5 | False |
The comparison sharpens when you line the signs up against real quantities. In a spreadsheet, =A1<B1 returns TRUE when the cell A1 holds the smaller number, and the formula treats text entries as larger than any number—so "apple" < 3 evaluates as FALSE, a quirk worth knowing before you sort mixed columns. In math, the strict 4 < 6 and the inclusive 4 ≤ 4 are different claims, and examiners deduct for swapping them. The table above keeps all five relational signs in one place so the family resemblance is obvious.
For readers who prefer a physical aid, hold up your left hand: thumb and index finger forming an "L" shape naturally point left, matching <. Your right hand mirrors it into >. That trick works for anyone who knows their left from their right, and it beats the alligator story for adults who find animal metaphors childish. The rule of thumb, pun intended: the sign's narrow tip always aims at the lesser value, whichever hand you use.
The Sign as an Angle Bracket in HTML and Markup Languages
In markup, < stops being a comparison and becomes a container marker. An HTML tag opens with < and the tag name, like for a paragraph, and closes with . The angle bracket tells the browser that what follows is markup rather than visible text. That's why a stray < in body copy can break a page layout: the browser interprets it as the beginning of an element, swallows the following words, and hides them from the reader.
The classic failure case is writing "5 < 10" directly into HTML. The browser sees < 10 as a malformed tag, and depending on the parser, either discards the fragment or mangles everything after it. The correct authoring habit is to write 5 < 10, which displays as "5 < 10" and keeps the markup intact. The same escape protects comparison operators in code samples, since < is also the sign for "less than" in JavaScript, Python, and C-family languages. One character, two jobs, and the escape is how you tell the parser which job you mean.
XML and XHTML tighten the rules further. These formats require every tag to close, so an unescaped < anywhere inside content triggers a parse error rather than a silent fix. If you maintain an RSS feed, an unescaped < in a product title will make the feed fail validation, and readers may see a blank entry. Wrapping the text in a CDATA section——is the standard workaround for content that must contain the raw character. Confirm the exact escaping rules on the W3C's markup validation guidance if you're shipping a feed for a client.
Angle brackets also carry meaning in templating systems. In many template languages, <% and %> delimit embedded code, and in others, <# opens a directive. These are conventions layered on top of the base character, not a property of < itself. The practical takeaway: when a document or feed misbehaves, search for a bare < before you debug anything else. It's the single most common invisible culprit in a broken page.
Less Than Sign in Programming: Operators, Shell Redirection, and Edge Cases
In source code, < is the less-than operator. Python's if age < 18: sends a minor down one branch; JavaScript's if (score < 60) flags a failing grade. The operator compares values and returns a Boolean, and the language's type rules decide what "less" means for strings versus numbers. Python 3 raises a TypeError when you compare a string to an integer, which is a safety feature; older languages quietly coerce, producing surprises. The sign itself is consistent, but the semantics around it vary by language and version.
Shell scripting gives < a second career: input redirection. In Bash, sort < names.txt feeds the file's contents into the sort command, and wc -l < report.csv counts lines without printing the filename. The direction of the bracket shows the flow of data, from file to program. The redirection form is not a comparison at all, and mixing it up with arithmetic comparison in a script is a common beginner error. The Bash manual documents the full redirection grammar if you need the exact forms.
Edge cases bite in three places. First, null values: in SQL, 5 < NULL returns NULL, not TRUE, because comparisons with NULL are unknown, so a WHERE clause using < silently excludes null rows. Second, floating-point arithmetic: 0.1 + 0.2 < 0.3 evaluates to TRUE in IEEE 754 double precision because the sum is slightly less than 0.3, a trap that catches new programmers. Third, string comparison uses lexicographic order, so in Python "10" < "9" is TRUE because "1" sorts before "9" character by character. Each case looks like a bug but follows documented rules; check the language's reference before assuming a failure.
In C and C++, the operator is overloaded by context—pointers compare addresses, custom types can define their own <—so the same keystroke can mean different things in different lines of the same file. Template metaprogramming pushes this furthest, where < delimits template argument lists. That legacy is exactly why the C++ committee explored alternate syntax for generics in later standards. The reading rule stays the same: check what's on each side of the sign before you decide what it does.
Common Mistakes, Misconceptions, and How to Avoid Them
The most common misconception is that < means "greater than" because it looks like an arrow pointing right. It doesn't. The arrowhead points at the smaller number, full stop. People who reverse it in a hurry usually wrote the numbers in the opposite order, not misread the sign. Rewriting 9 > 4 as 4 < 9 resolves the confusion instantly, because both statements say the same thing.
The second misconception concerns the "or equal to" forms. Some students read ≤ as a strict comparison and lose marks. Others write x ≤ 5 when the problem says "fewer than 5," which wrongly includes 5. The fix is to say the inequality aloud before solving: "fewer than" is strict, "at most" or "no more than" is inclusive. That vocabulary mapping prevents the error at the source, before any algebra happens.
A subtler mistake appears in typing. On keyboards, Shift+comma produces <, but pressing the key adjacent to it produces ,. In a long document, an accidental comma instead of a less-than sign can turn an equation into nonsense that still looks plausible at a glance. Proofreading formulas character by character—or pasting them into a calculator to test—catches these slips. Spreadsheets are useful here: enter the questionable formula and read the TRUE/FALSE result.
The biggest organizational mistake is using < where a word processor will autocorrect it into a quote mark or a dash. Smart-quote features in Word and Google Docs sometimes convert angle brackets when they think you're typing a quotation. Disable smart quotes for technical documents, or type in a plain-text editor before pasting. It sounds trivial until a published equation renders as 5 ” 10 and no one notices until a reader complains.
Reading and Using < in Real Documents and Data
In reports and data tables, < often appears as a threshold marker. A lab result printed as "<0.5 mg/L" means the measured value was below the detection limit of the test, not that it was exactly 0.5. That distinction matters in medicine and environmental testing, where "less than the reporting limit" is a distinct category from a measured number. When you compile such data, treat these values as censored observations rather than zeros; averaging them as if they were numeric distorts the summary.
In finance and commerce, the symbol shows up in pricing tiers and inclusivity language. A price list reading "under $50" and a contract clause saying "less than 30 days' notice" both invoke strictness that lawyers and accountants care about. A 30-day notice clause with a strict less-than reading excludes the 30th day; whether that's intended depends on the drafters. When documents matter, spell out the boundary in words instead of relying on the symbol alone.
In education, the sign is a curriculum landmark. US elementary standards introduce comparison symbols around second or third grade, and the "alligator mouth" mnemonic is a classroom staple. By middle school, students apply < to negative numbers and fractions, where the rule still holds: -7 < -2 because -7 is farther left on the number line. High school algebra extends it to variables and compound inequalities. Each stage keeps the same orientation, which is why early mastery pays off for years.
For anyone building a chart or slide deck, a consistent convention helps the audience. Decide whether your thresholds are strict or inclusive, and annotate the axis or footnote accordingly. A legend that says "under 10" next to a bar ending exactly at 10 invites a question you'd rather answer in advance. Small labeling choices like this separate a clear graphic from one that sparks an email thread.
Frequently Asked Questions
What does the less than sign look like, and which way does it point?
The sign is <, shaped like a narrow wedge with its point facing left in standard left-to-right text. The point aims at the smaller value, so in 2 < 8 the point faces the 2. A useful check is the left-hand "L" trick: thumb and index finger pointing left mirror the symbol. If your sign points right, you've written a greater-than sign instead.
Is < the same as ≤?
No. < is strict and excludes equality, so 5 < 5 is false, while ≤ includes it, making 5 ≤ 5 true. The difference changes answers in algebra, where "fewer than" maps to < and "at most" maps to ≤. In everyday text, "under 30 days" is strict and "within 30 days" is inclusive, and contracts sometimes hinge on that distinction.
Why won't my keyboard type the less than sign?
On a US layout, Shift+comma produces <; a plain comma means Shift wasn't held. If nothing appears, the keyboard layout may have switched to a language that maps the key elsewhere—check the input indicator on your taskbar or menu bar. On Windows, Alt+60 on the numeric keypad is the fallback; laptops without a keypad need the on-screen keyboard. On phones, look under the punctuation layer.
Can the less than sign break an HTML page?
Yes. A bare < in body text can be parsed as the start of an element, and browsers may hide or mangle the following content. Write < instead, which renders the character safely. XML and RSS feeds are stricter and will fail validation outright. The W3C's markup guidance covers the escaping rules, and templating systems add their own delimiters on top.
What does it mean when a lab result says "<0.5"?
It means the measured value fell below the test's reporting or detection limit, not that the value equals 0.5. Labs print this notation when the instrument cannot reliably quantify a smaller amount. Treating such results as zero in an average understates the true level, so statistical software has dedicated methods for censored data. Ask the lab for its detection limit if the number matters.
Is 0.1 + 0.2 < 0.3 true in most programming languages?
Usually true, and that surprises people. In IEEE 754 double precision, 0.1 plus 0.2 sums to slightly less than 0.3 because binary floating point can't represent those decimals exactly. Languages like Python, JavaScript, and C all inherit this behavior. For money and other exact values, use decimal or integer arithmetic rather than floating point comparisons.
How is < used differently in Bash than in math?
In Bash, < redirects a file into a command's input, as in sort < names.txt, rather than comparing two values. Arithmetic comparison in Bash uses -lt inside [ ] or (( )). The bracket's direction shows data flow, file to program, which is unrelated to numeric ordering. The Bash reference manual lists the full set of redirection operators.
Does the alligator method actually work for negative numbers?
It does, as long as you picture a number line. The alligator's mouth opens toward the larger value, and on a number line -2 sits to the right of -7, so -7 < -2 holds. The mnemonic fails only when someone forgets that -7 is the smaller number. Drawing the number line once usually fixes that misconception for good.