HTML Entity for Logical OR (∨)

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

What Is the Logical OR Entity?

Logical OR (∨) is the Mathematical Operators character at Unicode U+2228 (LOGICAL OR). It denotes boolean disjunction — P ∨ Q is true when at least one of P or Q is true.

Remember
Character     ∨
Unicode       U+2228
Hex entity    ∨
Decimal       ∨
Named entity  ∨ · ∨
CSS escape    \2228
Not the same  ∧ (∧) · ∪ (∪)

Named, hex, decimal, CSS, and a typed character all produce the same glyph: ∨. Prefer ∨ (or ∨) in HTML source for clarity.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity∨ / ∨HTML markup (best default)
Hex entity∨HTML markup
Decimal entity∨HTML markup
CSS escape\2228Stylesheet content
Direct character∨UTF-8 HTML text

When to Use Which

SituationUse
Readable logic HTML source∨ (or ∨)
Need a numeric entity in HTML∨ or ∨
Generated text via ::before / ::aftercontent: "\2228"
Logical AND (∧)Use ∧ (U+2227)
Set union (∪)Use ∪ (U+222A)

Live Preview

Logical OR in common logic and math contexts.

Expression P ∨ Q
Large glyph ∨
Named entity ∨ → ∨
vs AND / ∪ ∨  |  ∧  |  ∪
With entities Named: ∨ | Hex: ∨ | Decimal: ∨

Complete HTML Example

One page that shows this symbol with named, hex, decimal, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ∨ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Logical OR (∨)</title>
  <style>
    #point::after {
      content: "\2228";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x2228;</p>
  <p>Using HTML Code: &#8744;</p>
  <p>Using Named Entity: &or;</p>
  <p id="point">Using CSS Entity: </p>
  <p><code>P &or; Q</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &or; (alias &vee;) is the clearest HTML form and renders ∨.

2. Hex: U+2228 → &#x2228; in HTML. Same result as the named entity.

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

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

Pitfalls & Tips

Common mistakes when working with Logical OR.

Look-alikes

∨ ≠ ∧ ≠ ∪

AND (&and;) and union (&cup;) are different characters. Use U+2228 only for logical disjunction.

Code vs math

Not the same as ||

In programming source, || is an operator in code. In HTML prose or math, use &or; to display the ∨ symbol.

Aliases

&or; = &vee;

Both named entities map to U+2228. Prefer one style consistently in a document.

CSS vs HTML

Do not mix escapes

\2228 belongs in CSS. &or; / &#x2228; / &#8744; belong in HTML.

A11y

Add nearby words

Pair the glyph with words (for example P &or; Q / “P OR Q”) or use aria-label when it stands alone.

Semicolon

End references

Always finish with ; — write &or;, not &or.

Browser Support

Logical OR (U+2228) and its entity forms (&or;, &vee;, &#x2228;, &#8744;, CSS \\2228) are supported in all modern browsers.

✓ Universal encoding

Logical OR (&#x2228;)

Encode with named, hex, decimal, or CSS escape — or type ∨ directly in UTF-8 HTML.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer IE 9+
Yes*
U+2228 Full support

Bottom line: Prefer &or; for readable HTML. Use \\2228 only inside CSS content.

Key Takeaways

  • Unicode: this symbol is U+2228 (decimal 8744).
  • HTML: prefer &or; (alias &vee;) — or use &#x2228; / &#8744;.
  • CSS: use \2228 inside content for generated text.
  • Watch out: U+2228 ≠ &and; ≠ &cup;.

One line: U+2228 → &or; / &#x2228; / &#8744; / CSS \2228.

Frequently Asked Questions

Use &or; or &vee; (named), &#x2228; (hex), &#8744; (decimal), or the CSS escape \2228 in the content property. All render ∨.
U+2228 (LOGICAL OR). Hex 2228, decimal 8744. It belongs to Mathematical Operators (U+2200–U+22FF).
Yes. Both &or; and &vee; are named HTML5 entities for ∨ and are supported in all modern browsers.
Use it in boolean algebra, discrete math, programming docs, and logic expressions such as P ∨ Q. Prefer &or; for readable source.
HTML entities (&or;, &#8744;, or &#x2228;) go in markup. The CSS escape \2228 is used in stylesheets (usually in the content property of ::before/::after). Both render ∨.
No. ∨ is logical disjunction (&or;, U+2228). ∪ is set union (&cup;, U+222A). They look different and mean different things.

Did you know?

Logical OR is Unicode U+2228 (decimal 8744) — LOGICAL OR in Mathematical Operators. HTML5 provides &or; and &vee; — both render ∨. Prefer &or; for readable logic markup. Logical AND is &and; (∧, U+2227).

Next: Long Left Arrow

Learn the HTML entity for Long Left Arrow — next in this sequence.

Continue 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