Minus (−) is the mathematical minus sign at Unicode U+2212. HTML5 provides −. Prefer it in equations — it is not the same as the keyboard hyphen -.
Remember
Character −
Unicode U+2212
Named entity −
Hex entity −
Decimal −
CSS escape \2212
Named, hex, decimal, CSS, and a typed character all produce the same glyph: −.
Use − (named), − (hex), − (decimal), or the CSS escape \2212 in the content property. All render −. Prefer − in mathematical HTML.
U+2212 (MINUS SIGN). Hex 2212, decimal 8722. It belongs to the Mathematical Operators block.
Yes. − is the HTML5 named entity for −.
Use it for mathematical subtraction, negative numbers in math context, and scientific notation. Use the ASCII hyphen - for compound words and code.
HTML entities (−, −, or −) go in markup. The CSS escape \2212 is used in stylesheets (usually in the content property of ::before/::after). Both render −.
No. − is − (U+2212), the mathematical minus. The keyboard key produces - (U+002D, HYPHEN-MINUS), which is shorter and meant for text/code.
🤔
Did you know?
Minus sign is Unicode U+2212 (decimal 8722) — in Mathematical Operators. HTML5 provides −. Prefer it in math (10 − 3). The keyboard hyphen - is a different character (U+002D) used for words and code.