HTML Entity for Not Sign (¬)

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

What You'll Learn

How to display the Not Sign (¬) in HTML using named, hexadecimal, decimal, and CSS escape methods. This logic operator denotes negation (e.g. ¬P means NOT P).

This character is U+00AC (NOT SIGN) in the Latin-1 Supplement block (U+0080–U+00FF). Render it with the named entity ¬, ¬, ¬, or CSS escape \AC. Compare with Not Equal To (≠, ≠) and logic operators like NOR (⊽).

⚡ Quick Reference — Not Sign

Unicode U+00AC

Latin-1 Supplement

Hex Code ¬

Hexadecimal reference

HTML Code ¬

Decimal reference

Named Entity ¬

HTML5 named entity for U+00AC

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00AC
Hex code       ¬
HTML code      ¬
Named entity   ¬
CSS code       \AC
Meaning        Logical NOT (negation)
Related        U+2260 = not equal (≠, ≠)
               U+22BD = NOR (⊽, &nor;)
               U+22BC = NAND (⊼, &nand;)
Block          Latin-1 Supplement (U+0080–U+00FF)
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: "\AC";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#xAC;</p>
<p>Symbol (decimal): &#172;</p>
<p>Symbol (named): &not;</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+00AC is universally supported in all modern browsers and has been part of HTML since early versions:

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

👀 Live Preview

See ¬ in logic and negation contexts:

Logic ¬P means NOT P
Large glyph ¬
De Morgan ¬(PQ) = ¬P ∨ ¬Q
Example ¬(true) = false
Entity refs &not; &#xAC; &#172; \AC

🧠 How It Works

1

Named Entity

&not; is the HTML named entity for U+00AC—one of the oldest and most widely used HTML character references.

HTML markup
2

Hexadecimal Code

&#xAC; uses the Unicode hexadecimal value AC to display the not sign.

HTML markup
3

Decimal HTML Code

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

HTML markup
4

CSS Entity

\AC 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: ¬. Unicode U+00AC in Latin-1 Supplement (U+0080–U+00FF).

Use Cases

The ¬ symbol (&not;) is commonly used in:

📚 Logic

Denoting logical negation in propositional and predicate logic.

📐 Mathematics

Formal proofs and boolean algebra expressions.

💻 CS education

Computer science courses covering logic and boolean operations.

📚 Academia

Textbooks, papers, and lecture notes published as HTML.

🎓 Online courses

Interactive logic modules with web-based notation.

🌐 Reference guides

Unicode charts and HTML entity documentation.

💡 Best Practices

Do

  • Use &not; for readable logic and negation markup
  • Distinguish ¬ (logical NOT) from ≠ (not equal, &ne;)
  • Pair ¬ with plain-language description on first use
  • Use numeric references in generated or XML-first workflows
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ¬ (&not;) with ≠ (&ne;, not equal)
  • Confuse &not; with &notin; (∉, not element of)
  • Use padded Unicode notation like U+000AC—the correct value is U+00AC
  • Put CSS escape \AC in HTML text nodes
  • Use \000AC in CSS—the correct escape is \AC

Key Takeaways

1

Three HTML references plus CSS all render ¬

&#xAC; &#172; &not;
2

For CSS stylesheets, use the escape in the content property

\AC
3

Unicode U+00AC — NOT SIGN

4

Latin-1 Supplement block (U+0080–U+00FF)

5

&not; is the preferred named entity for readable source markup

❓ Frequently Asked Questions

Use &not; (named), &#xAC; (hex), &#172; (decimal), or \AC in CSS content. All produce ¬.
U+00AC (NOT SIGN). Latin-1 Supplement block (U+0080–U+00FF). Hex AC, decimal 172. Named entity: &not;.
Use ¬ for logical negation (NOT). Use ≠ (&ne;) for numeric or value inequality. They serve different purposes in notation.
HTML references (&#172;, &#xAC;, or &not;) go directly in markup. The CSS escape \AC is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
Yes. &not; is the named HTML entity for U+00AC and is one of the most common HTML character references.

Explore More HTML Entities!

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