HTML Entity for Greater Than Or Less Than (≷)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2277

What You'll Learn

How to display the Greater Than Or Less Than (≷) symbol in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2277 (GREATER-THAN OR LESS-THAN) in the Mathematical Operators block (U+2200–U+22FF).

Render it with ≷, ≷, or CSS escape \2277. There is no named HTML entity for U+2277. It indicates one value is either greater than or less than another (not equal)—used in order theory and formal logic. For separate symbols use > and <; for inequality use ≠.

⚡ Quick Reference — Greater Than Or Less Than

Unicode U+2277

Mathematical Operators

Hex Code ≷

Hexadecimal reference

HTML Code ≷

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2277
Hex code       ≷
HTML code      ≷
Named entity   (none)
CSS code       \2277
Meaning        Greater-than or less-than
Related        > < ≠ for separate symbols
1

Complete HTML Example

This example demonstrates the Greater Than Or Less Than symbol (≷) using hexadecimal code, decimal HTML code, and a CSS content escape. There is no named HTML entity for U+2277:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2277";
  }
 </style>
</head>
<body>
<p>Greater Than Or Less Than using Hexadecimal: &#x2277;</p>
<p>Greater Than Or Less Than using Decimal: &#8823;</p>
<p id="point">Greater Than Or Less Than using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Greater Than Or Less Than symbol (≷) is supported in modern browsers with a math-capable font:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Greater Than Or Less Than symbol (≷) in relation contexts:

Large glyph
Relation x ≷ y   a ≷ b
Separate ops x > y or x < y
Not equal x ≠ y via &ne;
Numeric refs &#x2277; &#8823; \2277

🧠 How It Works

1

Hexadecimal Code

&#x2277; uses the Unicode hexadecimal value 2277 to display the symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8823; uses the decimal Unicode value 8823 to display the same character.

HTML markup
3

CSS Entity

\2277 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All three methods produce . No named entity for U+2277. Next: Greater Than Over Equal To.

Use Cases

The Greater Than Or Less Than symbol (≷) is commonly used in:

📐 Order theory

Relations expressing strict comparability (e.g. x ≷ y).

🔢 Formal logic

Algebra and logic where combined greater-or-less operators appear.

📚 Textbooks

Academic papers and advanced mathematics courses.

📄 Technical docs

Specifications using specialized Unicode math operators.

💻 Symbol sets

Libraries and references mirroring Mathematical Operators.

📚 Documentation

HTML entity lists and Unicode operator references.

💡 Best Practices

Do

  • Use numeric codes when you need the single-glyph ≷
  • Use math fonts (Cambria Math, Noto Sans Math) for reliable rendering
  • Explain the relation in text for accessibility
  • Use &gt;, &lt;, or &ne; when separate symbols suffice
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Assume a named entity exists (U+2277 has none)
  • Confuse ≷ with (U+22DB)
  • Put CSS escape \2277 in HTML text nodes
  • Use ≷ when plain “not equal” (&ne;) is enough
  • Rely on the symbol alone for screen reader users

Key Takeaways

1

Hex, decimal, and CSS all render ≷

&#x2277; &#8823;
2

For CSS stylesheets, use the escape in the content property

\2277
3

Unicode U+2277 — GREATER-THAN OR LESS-THAN

4

No named entity—use numeric references

❓ Frequently Asked Questions

Use &#x2277; (hex), &#8823; (decimal), or \2277 in CSS content. There is no named HTML entity for U+2277. All three produce ≷.
U+2277 (GREATER-THAN OR LESS-THAN). Mathematical Operators block (U+2200–U+22FF). Hex 2277, decimal 8823. No named HTML entity.
In mathematical notation and order theory, formal logic and algebra, academic papers and textbooks, technical documentation that expresses strictly comparable or “one or the other” relations, and any content requiring the combined greater-or-less symbol in a single character.
HTML references (&#8823; or &#x2277;) go in markup. The CSS escape \2277 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Named HTML entities are reserved for the most common symbols (e.g. &gt;, &lt;, &ge;, &le;). U+2277 is a specialized relation in Mathematical Operators and uses numeric codes or CSS—standard for many math symbols in HTML.

Explore More HTML Entities!

Discover 1500+ HTML character references — math relations, comparisons, and more.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful