HTML Entity for Neither A Subset Nor Equal To (⊈)

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

What You'll Learn

How to display the Neither A Subset Nor Equal To symbol (⊈) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2288 (NEITHER A SUBSET OF NOR EQUAL TO) in the Mathematical Operators block (U+2200–U+22FF)—used in set theory to state that one set is not contained in another and is not equal to it.

Render it with ⊈, ⊈, or CSS escape \2288. There is no named HTML entity for U+2288. Related relations include subset (⊂, ⊂) and subset or equal (⊆, ⊆).

⚡ Quick Reference — Neither A Subset Nor Equal To

Unicode U+2288

Mathematical Operators

Hex Code ⊈

Hexadecimal reference

HTML Code ⊈

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2288
Hex code       ⊈
HTML code      ⊈
Named entity   (none)
CSS code       \2288
Meaning        Neither a subset of nor equal to
Related        U+2282 = subset (⊂, ⊂)
               U+2286 = subset or equal (⊆, ⊆)
               U+2284 = not a subset of (⊄, ⊄)
1

Complete HTML Example

This example demonstrates ⊈ using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2288";
  }
 </style>
</head>
<body>
<p>⊈ using Hexadecimal: &#x2288;</p>
<p>⊈ using HTML Code: &#8840;</p>
<p id="point">⊈ using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+2288 is widely supported wherever Unicode Mathematical Operators render correctly:

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

👀 Live Preview

See ⊈ in set theory and mathematical relation contexts:

Set relation AB means A is neither a subset of nor equal to B.
Large glyph
Subset family ⊂ subset   ⊆ subset or equal   ⊈ neither
Example {1, 3} ⊈ {1, 2}
Numeric refs &#x2288; &#8840; \2288

🧠 How It Works

1

Hexadecimal Code

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

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

\2288 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: . Unicode U+2288 in Mathematical Operators. No named HTML entity—use numeric codes in markup.

Use Cases

The ⊈ symbol is commonly used in:

🔢 Set theory

Expressing that one set is not contained in and not equal to another.

📚 Academia

Discrete math textbooks, papers, and lecture notes published as HTML.

📐 Math expressions

Formal proofs and definitions involving subset relations.

💻 CS education

Data structures and algorithms courses covering set operations.

🎓 Online courses

Interactive math modules with web-based notation.

🌐 Reference guides

Unicode charts and HTML entity documentation for math symbols.

💡 Best Practices

Do

  • Use &#x2288; or &#8840; consistently per project
  • Pair ⊈ with plain-language description on first use
  • Use fonts that cover Mathematical Operators (Cambria Math, etc.)
  • Add aria-label for standalone relation symbols
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ⊈ with ⊄ (not a subset of) or ⊆ (subset or equal)
  • Expect a named entity—none exists for U+2288
  • Put CSS escape \2288 in HTML text nodes
  • Use padded Unicode notation like U+02288—the correct value is U+2288
  • Rely on the glyph alone without accessible description

Key Takeaways

1

Two HTML numeric references render ⊈

&#x2288; &#8840;
2

For CSS stylesheets, use the escape in the content property

\2288
3

Unicode U+2288 — NEITHER A SUBSET OF NOR EQUAL TO

4

Mathematical Operators block (U+2200–U+22FF)

5

No named entity—use numeric codes or UTF-8 literal in source files

❓ Frequently Asked Questions

Use &#x2288; (hex), &#8840; (decimal), or \2288 in CSS content. All produce ⊈. There is no named entity.
U+2288 (NEITHER A SUBSET OF NOR EQUAL TO). Mathematical Operators block (U+2200–U+22FF). Hex 2288, decimal 8840.
In set theory, discrete mathematics, and formal math documents when expressing that one set is neither a subset of nor equal to another.
HTML references (&#8840; or &#x2288;) go directly in markup. The CSS escape \2288 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
No. U+2288 has no named HTML entity. Use &#x2288; or &#8840;, or type ⊈ directly in UTF-8-encoded source files.

Explore More HTML Entities!

Discover 1500+ HTML character references — set relations, math operators, logic symbols, 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