HTML Entity for Subset Or Equal To (⊆)

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

What You'll Learn

How to display the Subset Or Equal To symbol (⊆) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+2286 (SUBSET OF OR EQUAL TO) in the Mathematical Operators block (U+2200–U+22FF)—used when a set is a subset of another or the two sets are equal.

Render it with ⊆, ⊆, or CSS escape \2286. There is no named HTML entity. For example, AB means every element of A is in B (and A may equal B). Do not confuse ⊆ with ⊂ (strict subset) or ⊊ (subset, not equal).

⚡ Quick Reference — Subset Or Equal To

Unicode U+2286

Mathematical Operators

Hex Code ⊆

Hexadecimal reference

HTML Code ⊆

Decimal reference

Named Entity

Use numeric codes only

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

Complete HTML Example

This example demonstrates the Subset Or Equal To symbol (⊆) using hexadecimal code, decimal HTML code, and a CSS content escape (no named entity):

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2286";
  }
 </style>
</head>
<body>
<p>Subset Or Equal To using Hexadecimal: &#x2286;</p>
<p>Subset Or Equal To using HTML Code: &#8838;</p>
<p id="point">Subset Or Equal To using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Subset Or Equal To 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 Or Equal To symbol (⊆) rendered in different contexts:

Set relation ABA is a subset of or equal to B
Large glyph
vs related ⊂ strict subset   ⊆ subset or equal   ⊊ proper subset
Monospace &#x2286; &#8838; \2286
Equality allowed A = B implies AB

🧠 How It Works

1

Hexadecimal Code

&#x2286; uses the Unicode hexadecimal value 2286 to display the Subset Or Equal To symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

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

Use Cases

The Subset Or Equal To symbol (⊆) commonly appears in:

📐 Math Expressions

Equations like AB where equality is permitted.

🗃 Set Theory

Textbooks, papers, and lectures on sets and inclusions.

📚 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 &#x2286; or &#8838; for subset-or-equal notation
  • Pick one style (hex or decimal) per project for consistency
  • Add aria-label for standalone symbols in math content
  • Test the glyph across browsers and fonts
  • Use ⊆ when equality between sets is allowed

Don’t

  • Confuse ⊆ (subset or equal) with ⊂ (strict subset) or ⊊ (proper subset)
  • Put CSS escape \2286 directly in HTML text nodes
  • Expect a named HTML entity for U+2286—use numeric references
  • Use HTML entities in JS (use \u2286 instead)
  • Assume all fonts render ⊆ clearly at small sizes

Key Takeaways

1

Two HTML references both render ⊆

&#x2286; &#8838;
2

For CSS stylesheets, use the escape in the content property

\2286
3

Unicode U+2286 — SUBSET OF OR EQUAL TO

4

No named entity—use numeric references or CSS escape

5

Allows equality: AB includes the case A = B

❓ Frequently Asked Questions

Use &#x2286; (hex), &#8838; (decimal), or \2286 in CSS content. There is no named HTML entity. All three produce ⊆.
U+2286 (SUBSET OF OR EQUAL TO). Mathematical Operators block (U+2200–U+22FF). Hex 2286, decimal 8838.
In mathematical expressions, set theory notation, academic content, scientific documentation, educational materials, research papers, and any content representing subset-or-equal relationships.
HTML numeric references (&#8838; or &#x2286;) go directly in markup. The CSS escape \2286 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, or the two sets are equal—every element of the first set is contained in the second, and equality is permitted (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