HTML Entity for Logical OR (∨)

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

What You'll Learn

How to display the Logical OR (∨) symbol in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+2228 (LOGICAL OR) in the Mathematical Operators block (U+2200–U+22FF).

Render it with ∨, ∨, ∨, or CSS escape \2228. It denotes logical disjunction (“or”) in logic, mathematics, and programming. Related: XOR (⊻, ⊻) is exclusive OR, not the same as ∨.

⚡ Quick Reference — Logical OR

Unicode U+2228

Mathematical Operators

Hex Code ∨

Hexadecimal reference

HTML Code ∨

Decimal reference

Named Entity ∨

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2228
Hex code       ∨
HTML code      ∨
Named entity   ∨
CSS code       \2228
Meaning        Logical OR (disjunction)
Related        U+22BB = XOR (⊻)
Block          Mathematical Operators (U+2200–U+22FF)
1

Complete HTML Example

A simple example showing the Logical OR symbol (∨) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2228";
  }
 </style>
</head>
<body>
<p>Symbol (hex): &#x2228;</p>
<p>Symbol (decimal): &#8744;</p>
<p>Symbol (named): &or;</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Logical OR symbol (∨) is supported in modern browsers with a math-capable font:

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

👀 Live Preview

See the Logical OR symbol (∨) in logic and programming contexts:

Large glyph
Named entity&or; renders as ∨
Expressionp ∨ q (p OR q)
Compare∨ (OR) vs ⊻ (XOR)
Numeric refs&#x2228; &#8744; &or; \2228

🧠 How It Works

1

Hexadecimal Code

&#x2228; uses the Unicode hexadecimal value 2228 to display the symbol.

HTML markup
2

Decimal HTML Code

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

HTML markup
3

Named Entity

&or; is the semantic named entity for ∨—readable in source HTML and part of the HTML5 character set.

HTML markup
4

CSS Entity

\2228 is used in CSS stylesheets, particularly in the content property of pseudo-elements.

CSS stylesheet
=

Same visual result

All four methods produce the glyph: . Unicode U+2228 is in Mathematical Operators. Related: Curly Logical OR, XOR.

Use Cases

The Logical OR symbol (∨) is commonly used in:

🔢 Logic notation

Express disjunction in propositional and predicate logic.

💻 Programming tutorials

Explain boolean OR operators and truth tables in educational content.

📚 Academic papers

Formal definitions and proofs in mathematics and computer science.

📊 Set theory

Union and logical connectives in set notation discussions.

⚡ Boolean algebra

Circuit diagrams, digital logic, and gate-level explanations.

🌐 Web-based math

Equation renderers, calculators, and logic-heavy web applications.

💡 Best Practices

Do

  • Use &or; for readable source markup in logic content
  • Use math fonts (Cambria Math, Noto Sans Math) for reliable rendering
  • Distinguish ∨ (OR) from ⊻ (XOR) and from the pipe | in code
  • Provide context when meaning matters (e.g. “p OR q”)
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse &or; with the HTML <or> tag name in prose
  • Use ∨ when you mean XOR (&veebar;, ⊻)
  • Put CSS escape \2228 in HTML text nodes
  • Rely on the symbol alone for screen reader users
  • Assume every system font renders Mathematical Operators clearly

Key Takeaways

1

Four HTML/CSS references all render ∨

&#x2228; &#8744; &or;
2

For CSS stylesheets, use the escape in the content property

\2228
3

Unicode U+2228 — LOGICAL OR

4

Prefer &or; for readability; XOR is &veebar; (⊻)

❓ Frequently Asked Questions

Use &#x2228; (hex), &#8744; (decimal), &or; (named), or \2228 in CSS content. All produce ∨.
U+2228 (LOGICAL OR). Mathematical Operators block (U+2200–U+22FF). Hex 2228, decimal 8744. Named entity: &or;.
In logic notation, programming tutorials, mathematical content, academic papers, set theory, boolean algebra, and any content requiring the disjunction operator.
&or; is the named HTML entity for ∨. It is part of the HTML5 named character set and the most readable option in source markup.
∨ (&or;) is logical disjunction (OR). ⊻ (&veebar;) is exclusive OR (XOR). They represent different boolean operations.

Explore More HTML Entities!

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