HTML Entity for Not Subset Of (⊄)

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

What You'll Learn

How to display the Not Subset Of symbol (⊄) in HTML using named, hexadecimal, decimal, and CSS escape methods. This set-theory operator states that one set is not a proper subset of another (e.g. AB means A is not contained in B).

This character is U+2284 (NOT A SUBSET OF) in the Mathematical Operators block (U+2200–U+22FF). Render it with the named entity ⊄, ⊄, ⊄, or CSS escape \2284. Compare with Neither A Subset Nor Equal To (⊈) and Not A Superset Of (⊅, ⊅).

⚡ Quick Reference — Not Subset Of

Unicode U+2284

Mathematical Operators

Hex Code ⊄

Hexadecimal reference

HTML Code ⊄

Decimal reference

Named Entity ⊄

HTML5 named entity for U+2284

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2284
Hex code       ⊄
HTML code      ⊄
Named entity   ⊄
CSS code       \2284
Meaning        Not a subset of (strict)
Related        U+2282 = subset of (⊂, ⊂)
               U+2286 = subset of or equal (⊆, ⊆)
               U+2288 = neither subset nor equal (⊈)
               U+2285 = not a superset of (⊅, ⊅)
Block          Mathematical Operators (U+2200–U+22FF)
1

Complete HTML Example

A simple example showing ⊄ using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2284";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#x2284;</p>
<p>Symbol (decimal): &#8836;</p>
<p>Symbol (named): &nsub;</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

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

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See ⊄ in set theory and mathematical relation contexts:

Set relation AB means A is not a subset of B.
Large glyph
Subset family ⊂ subset   ⊆ subset or equal   ⊄ not subset
Example {1, 3} ⊄ {1, 2}
Entity refs &nsub; &#x2284; &#8836; \2284

🧠 How It Works

1

Named Entity

&nsub; is the HTML named entity for U+2284—the most readable choice when writing set-theory markup.

HTML markup
2

Hexadecimal Code

&#x2284; uses the Unicode hexadecimal value 2284 to display the not-subset symbol.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

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

CSS stylesheet
=

Same visual result

All four methods produce: . Unicode U+2284 in Mathematical Operators (U+2200–U+22FF).

Use Cases

The ⊄ symbol (&nsub;) is commonly used in:

🔢 Set theory

Stating that one set is not contained within another.

📚 Mathematics

Textbooks, papers, and lecture notes on sets and relations.

📐 Proofs

Formal arguments showing containment does not hold.

💻 CS education

Discrete math and algorithms courses with web-based notation.

🎓 Online courses

Interactive set-theory modules and quizzes.

🌐 Reference guides

Unicode charts and HTML entity documentation for math symbols.

💡 Best Practices

Do

  • Use &nsub; for readable set-theory markup
  • Distinguish ⊄ (not subset) from ⊈ (neither subset nor equal) and ⊆ (subset or equal)
  • Pair ⊄ with plain-language description on first use
  • Use numeric references in generated or XML-first workflows
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ⊄ (&nsub;) with ⊅ (&nsup;, not superset)
  • Confuse &nsub; with &notin; (∉, not element of)
  • Use padded Unicode notation like U+02284—the correct value is U+2284
  • Put CSS escape \2284 in HTML text nodes
  • Use \02284 in CSS—the correct escape is \2284

Key Takeaways

1

Three HTML references plus CSS all render ⊄

&#x2284; &#8836; &nsub;
2

For CSS stylesheets, use the escape in the content property

\2284
3

Unicode U+2284 — NOT A SUBSET OF

4

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

5

&nsub; is the preferred named entity for readable source markup

❓ Frequently Asked Questions

Use &nsub; (named), &#x2284; (hex), &#8836; (decimal), or \2284 in CSS content. All produce ⊄.
U+2284 (NOT A SUBSET OF). Mathematical Operators block (U+2200–U+22FF). Hex 2284, decimal 8836. Named entity: &nsub;.
Use ⊄ when a set is simply not a subset of another. Use ⊈ when it is neither a subset nor equal—a stronger, combined negation in set notation.
HTML references (&#8836;, &#x2284;, or &nsub;) go directly in markup. The CSS escape \2284 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Yes. &nsub; is the named HTML entity for U+2284 and is the most readable option in set-theory markup.

Explore More HTML Entities!

Discover 1500+ HTML character references — arrows, 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