HTML Entity for Subset Of (⊂)

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

What Is Subset Of?

Subset of (⊂) is the Mathematical Operators character at Unicode U+2282 (SUBSET OF). In set theory, A ⊂ B means every element of A is also in B. HTML5 provides the named entities ⊂ and ⊂.

Remember
Character     ⊂
Unicode       U+2282
Named entity  ⊂  (also ⊂)
Hex entity    ⊂
Decimal       ⊂
CSS escape    \2282

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\2282Stylesheet content

When to Use Which

SituationUse
Subset of (set theory)⊂ or ⊂
Subset or equal to⊆ / ⊆
Superset of (reverse)⊃ / ⊃
Subset with rightward arrow⥹ / ⥹
UTF-8 math textType or paste ⊂
Generated text via ::before / ::aftercontent: "\2282"

Live Preview

Subset of 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 Of 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 Of (⊂) in HTML</title>
  <style>
    #point::after {
      content: "\2282";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &sub;</p>
  <p>Using Hex Code: &#x2282;</p>
  <p>Using HTML Code: &#8834;</p>
  <p>Using Direct Character: ⊂</p>
  <p id="point">Using CSS Entity: </p>
  <p>Example: A &sub; B</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &sub; (or &subset;) is the clearest HTML form for U+2282.

2. Hex: U+2282 → &#x2282; in HTML. Reliable numeric form.

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

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

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

Pitfalls & Tips

Common mistakes when working with Subset Of.

⊆

Not subset or equal

&sube; (U+2286) allows equality. ⊂ is the strict-looking subset relation without that bar.

⊃

Not superset

&sup; (U+2283) is the reverse relation. A ⊂ B is not the same as A ⊃ B.

Aliases

&sub; = &subset;

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

Negation

Not a subset

Use &nsub; (⊄, U+2284) when you need the negated relation.

CSS vs HTML

Do not mix escapes

\2282 belongs in CSS. &sub; / &#x2282; / &#8834; belong in HTML.

Semicolon

End references

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

Browser Support

Subset of (U+2282) and its entity forms (&sub;, &#x2282;, &#8834;, CSS \\2282) are supported in all mainstream browsers. Glyph availability depends on the font.

✓ Universal support

Subset Of (&#x2282;)

Prefer &sub;, 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+2282 / entities Full support

Bottom line: Prefer &sub; (or &subset;) in HTML. Use &#x2282; / &#8834; when a numeric form is required, and \\2282 only inside CSS content.

Key Takeaways

  • Unicode: this mark is U+2282 (decimal 8834) — glyph ⊂.
  • HTML: prefer &sub; (alias &subset;), or &#x2282; / &#8834;.
  • CSS: use \2282 inside content for generated text.
  • Meaning: A ⊂ B — not the same as ⊆, ⊃, or ⊄.

One line: U+2282 → &sub; / &#x2282; / &#8834; / CSS \2282.

Frequently Asked Questions

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

Did you know?

Subset of (⊂) is Unicode U+2282 (decimal 8834) — SUBSET OF in Mathematical Operators. HTML5 provides &sub; (also &subset;). In set theory, A&nbsp;&sub;&nbsp;B means every element of A is also in B. Subset or equal is U+2286 (&sube;); the reverse is U+2283 (&sup;).

Next: Subset Or Equal To

Learn the HTML entity for subset or equal to (⊆).

Continue tutorial →

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