HTML Entity for Set Minus (∖)

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

What You'll Learn

How to display the Set Minus (∖) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2216 (SET MINUS) in the Mathematical Operators block (U+2200–U+22FF)—used for set difference in set theory (elements in one set that are not in another).

Render it with ∖, ∖, the named entity ∖, or CSS \2216. Do not confuse ∖ with U+2212 (−, arithmetic minus, −) or the ASCII hyphen -.

⚡ Quick Reference — Set Minus

Unicode U+2216

Mathematical Operators

Hex Code ∖

Hexadecimal reference

HTML Code ∖

Decimal reference

Named Entity ∖

Most readable for set theory

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2216
Hex code       ∖
HTML code      ∖
Named entity   ∖
CSS code       \2216
Meaning        Set difference (set minus)
Example        A ∖ B
Not the same   U+2212 = minus sign (−, −)
Block          Mathematical Operators (U+2200–U+22FF)
1

Complete HTML Example

A simple example showing ∖ using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\2216";
  }
 </style>
</head>
<body>
<p>Set minus (hex): &#x2216;</p>
<p>Set minus (decimal): &#8726;</p>
<p>Set minus (named): &setminus;</p>
<p id="point">Set minus (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Set Minus (∖) is supported in all modern browsers:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Set Minus in set theory and mathematical contexts:

Single symbol
Set difference AB = { xA : xB }
Named entity &setminus; renders as ∖
Not the same as Minus sign − (&minus;)  |  Hyphen -
Numeric refs &#x2216; &#8726; &setminus; \2216

🧠 How It Works

1

Hexadecimal Code

&#x2216; uses Unicode hexadecimal 2216 to display the set minus symbol.

HTML markup
2

Decimal HTML Code

&#8726; uses decimal Unicode value 8726 for the same character.

HTML markup
3

Named Entity

&setminus; is the standard named entity for U+2216—readable in set theory markup.

HTML markup
4

CSS Entity

\2216 is used in CSS stylesheets in the content property of pseudo-elements.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+2216 in Mathematical Operators. Next: Shadowed White Circle.

Use Cases

The Set Minus (∖) commonly appears in:

📐 Set theory

Set difference notation (e.g. AB) in proofs and definitions.

📚 Academic papers

Mathematics and computer science publications with set operations.

🎓 Education

Textbooks, lecture notes, and tutorials on discrete mathematics.

💻 CS documentation

Algorithm explanations involving set operations and data structures.

📊 Venn diagrams

Educational content describing regions outside overlapping sets.

🌐 Symbol guides

Math operator and HTML entity reference pages.

💡 Best Practices

Do

  • Use &setminus; for readable set theory markup
  • Use ∖ for set difference, not arithmetic subtraction
  • Consider MathML for complex multi-line equations
  • Pair symbols with explanatory text on first use
  • Pick one entity style per project for consistency

Don’t

  • Confuse ∖ (set minus) with − (minus sign, &minus;)
  • Use padded Unicode notation like U+02216—the correct value is U+2216
  • Use CSS escape \2216 in HTML text nodes
  • Substitute ASCII hyphen - for set difference notation
  • Assume every font renders ∖ clearly at small sizes

Key Takeaways

1

Four ways to render U+2216 in HTML and CSS

&#x2216; &setminus;
2

For CSS stylesheets, use \2216 in the content property

3

Unicode U+2216 — SET MINUS (set difference)

4

Not the same as minus sign − (&minus;)

❓ Frequently Asked Questions

Use &#x2216; (hex), &#8726; (decimal), &setminus; (named), or \2216 in CSS content. All four render ∖.
U+2216 (SET MINUS). Mathematical Operators (U+2200–U+22FF). Hex 2216, decimal 8726, named &setminus;.
No. ∖ (U+2216, &setminus;) is set difference in set theory. − (U+2212, &minus;) is the minus sign for arithmetic subtraction.
In mathematical expressions, set theory, academic papers, educational content, and any notation representing set difference (elements in one set not in another).
Yes. &setminus; is the standard named HTML entity for U+2216 and is the most readable option in set theory markup.

Explore More HTML Entities!

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