HTML Entity for Empty Set (∅)

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

What You'll Learn

How to display the Empty Set (∅) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2205 (EMPTY SET) in the Mathematical Operators block (U+2200–U+22FF)—the standard notation for a set with no elements in set theory, mathematics, and logic.

Render it with ∅, ∅, the named entity ∅, or CSS escape \2205. Compare with element-of (∈, ∈) when writing membership notation such as xS or ∅ ⊆ A.

⚡ Quick Reference — Empty Set

Unicode U+2205

Mathematical Operators

Hex Code ∅

Hexadecimal reference

HTML Code ∅

Decimal reference

Named Entity ∅

Standard in HTML

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2205
Hex code       ∅
HTML code      ∅
Named entity   ∅
CSS code       \2205
Related        U+2208 = Element of (∈ ∈); U+2209 = Not element of
1

Complete HTML Example

This example demonstrates the Empty Set (∅) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2205";
  }
 </style>
</head>
<body>
<p>Empty Set using Hexadecimal: &#x2205;</p>
<p>Empty Set using HTML Code: &#8709;</p>
<p>Empty Set using HTML Entity: &empty;</p>
<p id="point">Empty Set using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Empty Set entity is universally supported in modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the empty set (∅) in set-theory context and compared with element-of (∈):

Inline text For all sets A, ∅ ⊆ A.
Large glyph
vs element of &empty; ∅   vs   &isin;
Membership x ∈ ∅ is false for any x.
Numeric refs &#x2205; &#8709; &empty;

🧠 How It Works

1

Hexadecimal Code

&#x2205; uses the Unicode hexadecimal value 2205 to display the empty set symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8709; uses the decimal Unicode value 8709 to display the same character.

HTML markup
3

Named Entity

&empty; is the standard named entity for U+2205. It is readable and easy to remember in set-theory markup.

HTML markup
4

CSS Entity

\2205 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce the empty set glyph: . Unicode U+2205 in the Mathematical Operators block (U+2200–U+22FF).

Use Cases

The Empty Set (∅) commonly appears in:

📐 Set theory

Denote the unique set with no elements in definitions and proofs.

🎓 Education

Math courses, textbooks, and tutorials on discrete math and logic.

📝 Logic

Formal logic and proof writing with standard mathematical notation.

💻 CS docs

Type systems, databases, and APIs documenting empty collections.

📰 Research

Papers and preprints with correct set-theory symbols in HTML.

🌐 Symbol guides

Unicode and entity reference pages for math operators.

💡 Best Practices

Do

  • Use &empty; for U+2205 in HTML set-theory content
  • Use math-friendly fonts for clear ∅ rendering
  • Serve pages with UTF-8 (<meta charset="utf-8">)
  • Add context when the symbol carries meaning (e.g. aria-label)
  • Pair with &isin; and subset symbols as needed

Don’t

  • Use the letter O or zero as a substitute for ∅
  • Confuse U+2205 (empty set) with unrelated lookalike characters
  • Put CSS escape \2205 in HTML text nodes
  • Assume every font renders ∅ with the same stroke weight
  • Mix entity styles randomly in one file

Key Takeaways

1

Three HTML references plus CSS all render ∅

&#x2205; &#8709; &empty;
2

For CSS stylesheets, use the escape in the content property

\2205
3

Unicode U+2205 — Mathematical Operators empty set

4

&empty; is the standard named entity

5

Element of is ∈ (&isin;, U+2208)

❓ Frequently Asked Questions

Use &#x2205; (hex), &#8709; (decimal), &empty; (named), or \2205 in CSS content. All produce ∅.
U+2205 (EMPTY SET). Mathematical Operators block (U+2200–U+22FF). Hex 2205, decimal 8709.
When your content requires the standard mathematical symbol for a set with no elements, in proofs, definitions, or set-theory notation on the web.
Yes. &empty; is the HTML named entity for U+2205 (∅). Always include the semicolon: &empty;.
HTML entities (&#8709;, &#x2205;, or &empty;) go directly in markup. The CSS escape \2205 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 — math symbols, punctuation, 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