HTML Entity for Less Than Or Greater Than (≶)

What You'll Learn
How to display the Less Than Or Greater Than (≶) symbol in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2276 (LESS-THAN OR GREATER-THAN) in the Mathematical Operators block (U+2200–U+22FF).
Render it with ≶, ≶, ≶, or CSS escape \2276. It denotes that one value is less than or greater than another (typically not equal)—used in mathematics, logic, and technical documentation. Related mirror: Greater Than Or Less Than (≷, U+2277) has no named entity.
⚡ Quick Reference — Less Than Or Greater Than
U+2276Mathematical Operators
≶Hexadecimal reference
≶Decimal reference
≶Most readable option
Name Value
──────────── ──────────
Unicode U+2276
Hex code ≶
HTML code ≶
Named entity ≶
CSS code \2276
Meaning Less-than or greater-than
Related U+2277 = greater-than or less-than (≷)
≠ = not equal (≠)Complete HTML Example
A simple example showing the Less Than Or Greater Than (≶) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2276";
}
</style>
</head>
<body>
<p>Symbol (hex): ≶</p>
<p>Symbol (decimal): ≶</p>
<p>Symbol (named): ≶</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The Less Than Or Greater Than symbol (≶) is supported in modern browsers with a math-capable font:
👀 Live Preview
See the Less Than Or Greater Than symbol (≶) in comparison contexts:
🧠 How It Works
Hexadecimal Code
≶ uses the Unicode hexadecimal value 2276 to display the symbol. The x prefix indicates hexadecimal format.
Decimal HTML Code
≶ uses the decimal Unicode value 8822 to display the same character.
Named Entity
≶ is the semantic named entity for ≶—readable in source HTML and part of the HTML5 character set.
CSS Entity
\2276 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All four methods produce the glyph: ≶. Unicode U+2276 is in Mathematical Operators. Mirror: Greater Than Or Less Than (U+2277). Previous: Less Than Or Equivalent To.
Use Cases
The Less Than Or Greater Than symbol (≶) is commonly used in:
Express “less than or greater than” (strict inequality) in equations and proofs.
Document comparison operators, ordering, or constraints in software and math docs.
Formal definitions and proofs in mathematics, logic, and computer science.
Comparison relations where equality is excluded in formal notation.
Explain comparison operators and “not equal” semantics in educational content.
Equation renderers, calculators, or math-heavy web applications.
💡 Best Practices
Do
- Use
≶for readable source markup - Use math fonts (Cambria Math, Noto Sans Math) for reliable rendering
- Provide context when meaning matters (e.g. “a is less or greater than b”)
- Distinguish ≶ from
≠(≠) and from</> - Serve pages with UTF-8 (
<meta charset="utf-8">)
Don’t
- Confuse
≶with the HTML<lg>tag name in prose - Use ≶ when you only need
≠(not equal) - Put CSS escape
\2276in HTML text nodes - Rely on the symbol alone for screen reader users
- Assume every system font renders Mathematical Operators clearly
Key Takeaways
Three HTML references plus CSS all render ≶
≶ ≶ ≶For CSS stylesheets, use the escape in the content property
\2276Unicode U+2276 — LESS-THAN OR GREATER-THAN
Prefer ≶ for readability in HTML source
Previous: Less Than Or Equivalent To Next: Less Than Over Equal To
❓ Frequently Asked Questions
≶ (hex), ≶ (decimal), ≶ (named), or \2276 in CSS content. All produce ≶.U+2276 (LESS-THAN OR GREATER-THAN). Mathematical Operators block (U+2200–U+22FF). Hex 2276, decimal 8822. Named entity: ≶.≶ is the named HTML entity for ≶. It is part of the HTML5 named character set and the most readable option in source markup.≠) means not equal. ≶ (≶) is a combined less-than-or-greater-than symbol used in formal math notation, often implying inequality without specifying which direction applies.Explore More HTML Entities!
Discover 1500+ HTML character references — comparisons, operators, and more.
8 people found this page helpful
