HTML Entity Detail

HTML Entity - Minus Sign

Minus Sign is a mathematical operators, comparison symbols, and notation characters. This HTML entity enables web developers to display this character reliably across all browsers without encoding issues.

Symbol preview
Unicode

U+2212

HTML entity

−

CSS code

\2212

Usage Examples

Use this HTML entity in mathematical expressions and equations. For example, ≠ for not equal, ≤ for less than or equal, ∞ for infinity.

Common Mistakes

⚠️

Mistake: Using a hyphen - instead of the proper minus sign −

Fix: Use − (−) for subtraction. The hyphen - is shorter and designed for word hyphenation, not mathematics.

⚠️

Mistake: Confusing − (minus) with – (en-dash) or — (em-dash)

Fix: The minus sign − is the same width as the plus sign +. The en-dash – is wider, and the em-dash — is widest. Each has a distinct purpose.

Minus Sign

Select any code to highlight it before copying.

Category: Math Symbol
Unicode U+2212
Hex Code −
HTML Code −
HTML Entity −
CSS Code \2212
Windows Shortcut
Mac Shortcut
HTML code example
CSS code example
Help2Code Logo
Menu