HTML Entity for NAND (⊼)

Intermediate
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+22BC

What You'll Learn

How to display the NAND symbol (⊼) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+22BC (SHEFFER STROKE) in the Mathematical Operators block (U+2200–U+22FF)—the standard notation for the NAND (NOT AND) logical operation in Boolean algebra and digital electronics.

Render it with ⊼, ⊼, or CSS escape \22BC. There is no named HTML entity for U+22BC. Pair with related logic symbols such as XOR (⊻) and N-Ary Logical AND (⋀) in formal logic notation.

⚡ Quick Reference — NAND

Unicode U+22BC

Mathematical Operators

Hex Code ⊼

Hexadecimal reference

HTML Code ⊼

Decimal reference

Named Entity

Use numeric codes only

Reference Table
Name           Value
────────────   ──────────
Unicode        U+22BC
Hex code       ⊼
HTML code      ⊼
Named entity   (none)
CSS code       \22BC
Meaning        NAND / Sheffer stroke (NOT AND)
Related        U+22BB = XOR (⊻, ⊻)
               U+22C0 = n-ary AND (⋀, ⋀)
1

Complete HTML Example

This example demonstrates the NAND symbol (⊼) using hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\22BC";
  }
 </style>
</head>
<body>
<p>NAND using Hexadecimal: &#x22BC;</p>
<p>NAND using HTML Code: &#8892;</p>
<p id="point">NAND using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+22BC is supported in modern browsers when rendered with a Unicode-capable font:

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

👀 Live Preview

See the NAND symbol (⊼) in logic and Boolean algebra contexts:

Inline text The NAND operation ⊼ is true unless both operands are true.
Large glyph
In a formula PQ = ¬(PQ)
Logic gate A ⊼ B → NAND gate output
Truth table 0 ⊼ 0 = 1 0 ⊼ 1 = 1 1 ⊼ 0 = 1 1 ⊼ 1 = 0

🧠 How It Works

1

Hexadecimal Code

&#x22BC; uses the Unicode hexadecimal value 22BC to display the NAND symbol. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

CSS Entity

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

CSS stylesheet
=

Same visual result

All three methods produce: . Unicode U+22BC sits in the Mathematical Operators block (U+2200–U+22FF). No named HTML entity—use numeric codes in markup.

Use Cases

The NAND symbol (⊼) is commonly used in:

⚡ Logic Gates

Digital electronics docs describing NAND gate behavior and circuit design.

🌐 Boolean Algebra

Truth tables, lecture notes, and formal logic with the Sheffer stroke operator.

📄 Programming Docs

Explain NAND-style bitwise logic alongside code examples.

📐 Math Expressions

Propositional logic where ⊼ denotes NOT AND between formulas.

🧮 CS Education

Computer architecture courses, textbooks, and interactive tutorials.

📝 Engineering References

Hardware datasheets and technical articles on universal gate logic.

💡 Best Practices

Do

  • Use &#x22BC; or &#8892; consistently per project
  • Pair ⊼ with plain text “NAND” on first use for clarity
  • Serve pages with UTF-8 (<meta charset="utf-8">)
  • Add aria-label for standalone logic symbols
  • Distinguish ⊼ from similar operators like XOR ⊻

Don’t

  • Expect a named entity—none exists for U+22BC
  • Put CSS escape \22BC in HTML text nodes
  • Use padded Unicode notation like U+022BC—the correct value is U+22BC
  • Confuse ⊼ (NAND) with ∧ (AND, &and;) or ∨ (OR, &or;)
  • Rely on the glyph alone without context in accessibility-sensitive content

Key Takeaways

1

Two HTML numeric references render ⊼

&#x22BC; &#8892;
2

For CSS stylesheets, use the escape in the content property

\22BC
3

Unicode U+22BC — SHEFFER STROKE (NAND / NOT AND)

4

Mathematical Operators block (U+2200–U+22FF)

5

No named entity—use numeric codes or UTF-8 literal in source files

❓ Frequently Asked Questions

Use &#x22BC; (hex), &#8892; (decimal), or \22BC in CSS content. All produce ⊼. There is no named entity.
U+22BC (SHEFFER STROKE). Mathematical Operators block (U+2200–U+22FF). Hex 22BC, decimal 8892. Denotes NAND (NOT AND) in Boolean algebra.
In digital electronics docs, logic gate references, Boolean algebra, CS education, truth tables, and engineering content describing the NAND operation.
HTML references (&#8892; or &#x22BC;) go directly in markup. The CSS escape \22BC is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.
No. U+22BC has no named HTML entity. Use &#x22BC; or &#8892;, or type ⊼ directly in UTF-8-encoded source files.

Explore More HTML Entities!

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