HTML Entity for Complement (∁)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+2201

What Is Complement?

Complement (∁) is the Unicode character at U+2201 in the Mathematical Operators block. It is used in math and set-theory notation for a complement-style symbol — a spacing glyph, not a combining mark.

Remember
Character     ∁
Unicode       U+2201
Hex entity    ∁
Decimal       ∁
Named entity  ∁
CSS escape    \2201
Not the same  ∅ U+2205 · ¬ U+00AC

All of these produce the same glyph: ∁. Prefer ∁ or a typed ∁ in hand-written HTML; use numeric forms when generating markup.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character∁HTML text (UTF-8)
Named entity∁HTML markup
Hex entity∁HTML markup
Decimal entity∁HTML markup
CSS escape\2201Stylesheet content

When to Use Which

SituationUse
Hand-written HTML∁ or type ∁
Generated / numeric-only markup∁ or ∁
Generated text via ::before / ::aftercontent: "\2201"
Empty set symbol∅ U+2205 — not U+2201
Logical not¬ U+00AC — not U+2201

Live Preview

Complement rendered in common math contexts.

Inline math ∁A
Large glyph ∁
Compared ∁   ∅   ¬
Monospace set ∁ S
With entities Named: ∁ | Hex: ∁ | Decimal: ∁

Complete HTML Example

One page that shows Complement with the named entity, hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.

Named + Hex + Decimal + CSS + Typed

Five ways to produce ∁ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Complement (∁) in HTML</title>
  <style>
    #point::after {
      content: "\2201";
    }
  </style>
</head>
<body>
  <p>Complement using Named Entity: &comp;</p>
  <p>Complement using Hex Code: &#x2201;</p>
  <p>Complement using HTML Code: &#8705;</p>
  <p id="point">Complement using CSS Entity: </p>
  <p>Typed directly: ∁</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &comp; is the HTML5 named reference for U+2201 → ∁.

2. Hex: U+2201 → &#x2201; in HTML. Same glyph as the named form.

3. Decimal: same code point as 8705 → &#8705;. Same result as hex.

4. CSS: use \2201 in content (not an HTML entity). #point::after appends that ∁ after the paragraph text.

5. Typed: in a UTF-8 page you can paste ∁ directly. All five lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with Complement entities.

Named

Use &comp;

The HTML5 named form is &comp;. There is no &complement; alias in HTML5.

∅ vs ∁

Not empty set

∅ is empty set (U+2205). ∁ is complement (U+2201). Different symbols for different ideas.

¬ vs ∁

Not logical not

¬ (U+00AC) is not-sign for logic. Do not use it as a stand-in for set complement ∁.

CSS vs HTML

Do not mix escapes

\2201 belongs in CSS. &comp; / &#x2201; / &#8705; belong in HTML.

Fonts

Math font coverage

Some fonts omit U+2201. Prefer a font with Mathematical Operators coverage for display.

Semicolon

End references

Always finish with ; — write &comp; and &#8705;, not bare forms.

Browser Support

Complement (U+2201) and its entity forms (&comp;, &#x2201;, &#8705;, CSS \\2201) are supported in all mainstream browsers. Visible glyphs depend on font coverage.

✓ Universal support

Complement (&#x2201;)

Encode with named, hex, decimal, CSS escape, or type the character — same glyph everywhere encoding is supported.

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+2201 / entities Full support

Bottom line: Prefer &comp; or typed ∁ in HTML. Use \\2201 only inside CSS content. Do not confuse with empty set ∅ or not-sign ¬.

Key Takeaways

  • Unicode: complement is U+2201 (decimal 8705) — glyph ∁.
  • HTML: use &comp;, &#x2201;, &#8705;, or type ∁.
  • CSS: use \2201 inside content for generated text.
  • Watch out: ∁ ≠ ∅ ≠ ¬.

One line: U+2201 → &comp; / &#8705; / CSS \2201 / type ∁.

Frequently Asked Questions

Use &#x2201; (hex), &#8705; (decimal), &comp; (named), or the CSS escape \2201 in the content property. All render ∁. You can also paste ∁ directly when your file is UTF-8.
U+2201 (hex 2201, decimal 8705). It belongs to the Mathematical Operators block and is used for complement notation in math and set theory.
Yes. &comp; is the HTML5 named reference for ∁. Numeric forms &#8705; and &#x2201; also work.
Use it in math or set-theory pages that need the complement glyph. In plain English prose, writing “complement” as a word is clearer for beginners.
HTML entities (&comp;, &#8705;, or &#x2201;) go in markup. The CSS escape \2201 goes in stylesheet strings (usually content on ::before/::after).
∁ (U+2201 / &comp;) is COMPLEMENT. ∅ (U+2205) is EMPTY SET. ¬ (U+00AC) is NOT SIGN — logical negation, not set complement.

Did you know?

Complement is Unicode U+2201 (decimal 8705) — glyph ∁ in the Mathematical Operators block. HTML named reference is &comp;. It is used in set theory and math texts for complement-style notation. It is not empty set ∅ (U+2205) and not not-sign ¬ (U+00AC).

Next: Conjunction

Learn the HTML entity for conjunction (U+260C).

Conjunction 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