HTML Entity for Subset Or Equal To (⊆)

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, A ⊆ B 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
U+2286Mathematical Operators
⊆Hexadecimal reference
⊆Decimal reference
—Use numeric codes only
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 (⊂)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):
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2286";
}
</style>
</head>
<body>
<p>Subset Or Equal To using Hexadecimal: ⊆</p>
<p>Subset Or Equal To using HTML Code: ⊆</p>
<p id="point">Subset Or Equal To using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The Subset Or Equal To entity is universally supported in all modern browsers:
👀 Live Preview
See the Subset Or Equal To symbol (⊆) rendered in different contexts:
🧠 How It Works
Hexadecimal Code
⊆ uses the Unicode hexadecimal value 2286 to display the Subset Or Equal To symbol. The x prefix indicates hexadecimal format.
Decimal HTML Code
⊆ uses the decimal Unicode value 8838 to display the same character. This is one of the most commonly used methods.
CSS Entity
\2286 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
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:
Equations like A ⊆ B where equality is permitted.
Textbooks, papers, and lectures on sets and inclusions.
Research papers, proofs, and scholarly articles.
Technical documentation and math web applications.
Online courses and tutorials on mathematics and set theory.
Calculator interfaces and computational tool UIs.
Conference proceedings and mathematical journals.
💡 Best Practices
Do
- Use
⊆or⊆for subset-or-equal notation - Pick one style (hex or decimal) per project for consistency
- Add
aria-labelfor 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
\2286directly in HTML text nodes - Expect a named HTML entity for U+2286—use numeric references
- Use HTML entities in JS (use
\u2286instead) - Assume all fonts render ⊆ clearly at small sizes
Key Takeaways
Two HTML references both render ⊆
⊆ ⊆For CSS stylesheets, use the escape in the content property
\2286Unicode U+2286 — SUBSET OF OR EQUAL TO
No named entity—use numeric references or CSS escape
Allows equality: A ⊆ B includes the case A = B
❓ Frequently Asked Questions
⊆ (hex), ⊆ (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.⊆ or ⊆) 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.Explore More HTML Entities!
Discover 1500+ HTML character references — set theory, math operators, and more.
8 people found this page helpful
