HTML Entity for Logical OR (∨)

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
U+2228Mathematical Operators
∨Hexadecimal reference
∨Decimal reference
∨Most readable option
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)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:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\2228";
}
</style>
</head>
<body>
<p>Symbol (hex): ∨</p>
<p>Symbol (decimal): ∨</p>
<p>Symbol (named): ∨</p>
<p id="point">Symbol (CSS): </p>
</body>
</html>🌐 Browser Support
The Logical OR symbol (∨) is supported in modern browsers with a math-capable font:
👀 Live Preview
See the Logical OR symbol (∨) in logic and programming contexts:
🧠 How It Works
Hexadecimal Code
∨ uses the Unicode hexadecimal value 2228 to display the symbol.
Decimal HTML Code
∨ uses the decimal Unicode value 8744 to display the same character.
Named Entity
∨ is the semantic named entity for ∨—readable in source HTML and part of the HTML5 character set.
CSS Entity
\2228 is used in CSS stylesheets, particularly in the content property of pseudo-elements.
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:
Express disjunction in propositional and predicate logic.
Explain boolean OR operators and truth tables in educational content.
Formal definitions and proofs in mathematics and computer science.
Union and logical connectives in set notation discussions.
Circuit diagrams, digital logic, and gate-level explanations.
Equation renderers, calculators, and logic-heavy web applications.
💡 Best Practices
Do
- Use
∨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
∨with the HTML<or>tag name in prose - Use ∨ when you mean XOR (
⊻, ⊻) - Put CSS escape
\2228in HTML text nodes - Rely on the symbol alone for screen reader users
- Assume every system font renders Mathematical Operators clearly
Key Takeaways
Four HTML/CSS references all render ∨
∨ ∨ ∨For CSS stylesheets, use the escape in the content property
\2228Unicode U+2228 — LOGICAL OR
Prefer ∨ for readability; XOR is ⊻ (⊻)
Previous: Logical AND (∧) Next: Long Left Arrow
❓ Frequently Asked Questions
∨ (hex), ∨ (decimal), ∨ (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: ∨.∨ is the named HTML entity for ∨. It is part of the HTML5 named character set and the most readable option in source markup.∨) is logical disjunction (OR). ⊻ (⊻) is exclusive OR (XOR). They represent different boolean operations.Explore More HTML Entities!
Discover 1500+ HTML character references — logic operators, math symbols, and more.
8 people found this page helpful
