HTML Entity for Subset Or Equal To (⊆)

Beginner
6 min read
Updated: Sep 2026
1 example
Unicode U+2286

What Is Subset Or Equal To?

Subset or equal to (⊆) is the Mathematical Operators character at Unicode U+2286 (SUBSET OF OR EQUAL TO). In set theory, A ⊆ B means A is a subset of B or the sets are equal. HTML5 provides the named entities ⊆ and ⊆.

Remember
Character     ⊆
Unicode       U+2286
Named entity  ⊆  (also ⊆)
Hex entity    ⊆
Decimal       ⊆
CSS escape    \2286

All of these produce the same glyph: ⊆. Prefer ⊆ for readable HTML; paste ⊆ in UTF-8 when convenient.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity⊆HTML markup (also ⊆)
Hex entity⊆HTML markup
Decimal entity⊆HTML markup
Direct character⊆HTML text (UTF-8 default)
CSS escape\2286Stylesheet content

When to Use Which

SituationUse
Subset of or equal to⊆ or ⊆
Subset of (no “or equal” bar)⊂ / ⊂
Superset or equal (reverse)⊇ / ⊇
Proper subset (not equal)⊊
UTF-8 math textType or paste ⊆
Generated text via ::before / ::aftercontent: "\2286"

Live Preview

Subset or equal to rendered in common contexts.

Glyph ⊆
Large glyph ⊆
In a relation A ⊆ B
With entities Named: ⊆ | Hex: ⊆ | Decimal: ⊆
Related symbols ⊂ (⊂) · ⊇ (⊇) · ⊊

Complete HTML Example

One page that shows Subset Or Equal To with named, hex, decimal, direct, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + Direct + CSS

Five ways to produce ⊆ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Subset Or Equal To (⊆) in HTML</title>
  <style>
    #point::after {
      content: "\2286";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &sube;</p>
  <p>Using Hex Code: &#x2286;</p>
  <p>Using HTML Code: &#8838;</p>
  <p>Using Direct Character: ⊆</p>
  <p id="point">Using CSS Entity: </p>
  <p>Example: A &sube; B</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &sube; (or &subseteq;) is the clearest HTML form for U+2286.

2. Hex: U+2286 → &#x2286; in HTML. Reliable numeric form.

3. Decimal: same code point as 8838 → &#8838;. Same glyph.

4. Direct: paste ⊆ in a UTF-8 file with <meta charset="UTF-8">.

5. CSS: use \2286 in content (not an HTML entity). #point::after appends that ⊆ after the paragraph text.

Pitfalls & Tips

Common mistakes when working with Subset Or Equal To.

⊂

Not plain subset

&sub; (U+2282) is subset of without the equality bar. Use ⊆ when “or equal” is intended.

⊇

Not superset or equal

&supe; (U+2287) is the reverse relation. A ⊆ B is not the same as A ⊇ B.

Aliases

&sube; = &subseteq;

Both named forms map to U+2286. Pick one and stay consistent.

Named?

Named entities exist

Prefer &sube; over numeric forms when readability matters — HTML5 defines both &sube; and &subseteq;.

CSS vs HTML

Do not mix escapes

\2286 belongs in CSS. &sube; / &#x2286; / &#8838; belong in HTML.

Semicolon

End references

Always finish with ; — write &sube;, not &sube.

Browser Support

Subset or equal to (U+2286) and its entity forms (&sube;, &#x2286;, &#8838;, CSS \\2286) are supported in all mainstream browsers. Glyph availability depends on the font.

✓ Universal support

Subset Or Equal To (⊆)

Prefer &sube;, or encode with hex, decimal, or CSS escape — same glyph everywhere.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+2286 / entities Full support

Bottom line: Prefer &sube; (or &subseteq;) in HTML. Use &#x2286; / &#8838; when a numeric form is required, and \\2286 only inside CSS content.

Key Takeaways

  • Unicode: this mark is U+2286 (decimal 8838) — glyph ⊆.
  • HTML: prefer &sube; (alias &subseteq;), or &#x2286; / &#8838;.
  • CSS: use \2286 inside content for generated text.
  • Meaning: A ⊆ B — not the same as ⊂, ⊇, or ⊊.

One line: U+2286 → &sube; / &#x2286; / &#8838; / CSS \2286.

Frequently Asked Questions

Use &sube; (named), &#x2286; (hex), &#8838; (decimal), type ⊆ directly in UTF-8, or the CSS escape \2286 in content. Alias: &subseteq;.
U+2286 (SUBSET OF OR EQUAL TO). Hex 2286, decimal 8838. It belongs to Mathematical Operators (U+2200–U+22FF).
Yes. HTML5 defines &sube; and &subseteq; for this character. Both are equivalent to &#8838; and &#x2286;.
Use it in set theory when A is a subset of B or A equals B (A ⊆ B). Prefer &sub; for subset of without emphasizing equality (U+2282) and &supe; for the reverse relation (U+2287).
HTML entities (&sube;, &#8838;, or &#x2286;) go in markup. The CSS escape \2286 goes in stylesheet strings (usually content on ::before/::after).
No. ⊆ is subset of or equal to (U+2286). ⊂ is subset of (U+2282). ⊇ is superset of or equal to (U+2287).

Did you know?

Subset or equal to (⊆) is Unicode U+2286 (decimal 8838) — SUBSET OF OR EQUAL TO in Mathematical Operators. HTML5 provides &sube; (also &subseteq;). In set theory, A&nbsp;&sube;&nbsp;B means A is a subset of B or the sets are equal. Plain subset is U+2282 (&sub;); the reverse is U+2287 (&supe;).

Next: Subset With Not Equal To

Learn the HTML entity for subset with not equal to (⊊).

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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