HTML Entity for Subset Of (⊂)

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

What You'll Learn

How to display the Subset Of symbol (⊂) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2282 (SUBSET OF) in the Mathematical Operators block (U+2200–U+22FF)—the standard notation for a subset relationship in set theory.

Render it with ⊂, ⊂, the named entity ⊂, or CSS escape \2282. For example, AB means every element of A is in B. Do not confuse ⊂ with ⊆ (subset or equal to) or ⊄ (not a subset of).

⚡ Quick Reference — Subset Of

Unicode U+2282

Mathematical Operators

Hex Code ⊂

Hexadecimal reference

HTML Code ⊂

Decimal reference

Named Entity ⊂

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2282
Hex code       ⊂
HTML code      ⊂
Named entity   ⊂
CSS code       \2282
Block          Mathematical Operators (U+2200–U+22FF)
Related        U+2286 = Subset or equal to (⊆)
1

Complete HTML Example

This example demonstrates the Subset Of symbol (⊂) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2282";
  }
 </style>
</head>
<body>
<p>Subset Of using Hexadecimal: &#x2282;</p>
<p>Subset Of using HTML Code: &#8834;</p>
<p>Subset Of using Named Entity: &sub;</p>
<p id="point">Subset Of using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Subset Of entity is universally supported in all modern browsers:

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

👀 Live Preview

See the Subset Of symbol (⊂) rendered in different contexts:

Set relation ABA is a subset of B
Large glyph
vs related ⊂ subset   ⊆ subset or equal   ⊄ not subset
Monospace &#x2282; &#8834; &sub; \2282
Named entity &sub; → ⊂

🧠 How It Works

1

Hexadecimal Code

&#x2282; uses the Unicode hexadecimal value 2282 to display the Subset Of symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8834; uses the decimal Unicode value 8834 to display the same character. This is one of the most commonly used methods.

HTML markup
3

Named Entity

&sub; is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.

HTML markup
4

CSS Entity

\2282 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 the glyph: . Unicode U+2282 in the Mathematical Operators block (U+2200–U+22FF).

Use Cases

The Subset Of symbol (⊂) commonly appears in:

📐 Math Expressions

Equations like AB in formulas and proofs.

🗃 Set Theory

Textbooks, papers, and lectures on sets and relations.

📚 Academic Content

Research papers, proofs, and scholarly articles.

📄 Scientific Docs

Technical documentation and math web applications.

🎓 Education

Online courses and tutorials on mathematics and set theory.

💻 Math Software

Calculator interfaces and computational tool UIs.

📝 Research Papers

Conference proceedings and mathematical journals.

💡 Best Practices

Do

  • Use &sub; for readable source markup
  • Pick one style (hex / decimal / named) per project
  • Add aria-label for standalone symbols in math content
  • Test the glyph across browsers and fonts
  • Pair ⊂ with plain text on first use (e.g. “A subset B”)

Don’t

  • Confuse ⊂ (subset) with ⊆ (subset or equal) or ⊃ (superset)
  • Mix entity styles randomly in one file
  • Use CSS escape \2282 inside HTML text nodes
  • Use HTML entities in JS (use \u2282 instead)
  • Assume all fonts render ⊂ clearly at small sizes

Key Takeaways

1

Three HTML references all render ⊂

&#x2282; &#8834; &sub;
2

For CSS stylesheets, use the escape in the content property

\2282
3

Unicode U+2282 — SUBSET OF

4

Prefer &sub; for readability—it’s the most self-descriptive named entity

5

Part of the Mathematical Operators block (U+2200–U+22FF)

❓ Frequently Asked Questions

Use &#x2282; (hex), &#8834; (decimal), &sub; (named), or \2282 in CSS content. All produce ⊂.
U+2282 (SUBSET OF). Mathematical Operators block (U+2200–U+22FF). Hex 2282, decimal 8834.
In mathematical expressions, set theory notation, academic content, scientific documentation, educational materials, research papers, and any content representing subset relationships.
HTML entities (&#8834;, &#x2282;, or &sub;) go directly in markup. The CSS escape \2282 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
It indicates that one set is a subset of another—every element of the first set is contained in the second. It is fundamental notation in set theory (e.g. AB).

Explore More HTML Entities!

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