Mars (♂) is the Miscellaneous Symbols character at Unicode U+2642 (MALE SIGN). The same glyph is the traditional planet Mars symbol in astronomy and astrology — and the male gender sign.
Remember
Character ♂
Unicode U+2642
Named entity ♂
Hex entity ♂
Decimal ♂
CSS escape \2642
Named, hex, decimal, CSS, and a typed character all produce the same glyph: ♂. Prefer ♂ in HTML source — there is no separate &mars; name.
Use ♂ (named), ♂ (hex), ♂ (decimal), or the CSS escape \2642 in the content property. All render ♂. Prefer ♂ in HTML source.
U+2642 (MALE SIGN). Hex 2642, decimal 9794. It belongs to the Miscellaneous Symbols block and is also used as the planet Mars symbol.
Yes. ♂ is the HTML5 named entity for ♂. There is no separate &mars; name — use ♂.
Use it for astronomy, astrology, planet references, and any content that needs the ♂ Mars symbol. The same entity is also used for the male gender sign.
HTML entities (♂, ♂, or ♂) go in markup. The CSS escape \2642 is used in stylesheets (usually in the content property of ::before/::after). Both render ♂.
No. Mars / male is ♂ (U+2642, ♂). Venus / female is ♀ (U+2640, ♀).
🤔
Did you know?
Mars is Unicode U+2642 (decimal 9794) — MALE SIGN in Miscellaneous Symbols. The same glyph is used as the planet Mars and the male gender symbol. HTML5 provides ♂. Related: Venus / female sign ♀ (♀, U+2640).