HTML Entity for Male Sign (♂)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+2642

What You'll Learn

How to display the Male Sign (♂) in HTML using hexadecimal, decimal, the named entity ♂, and CSS escape methods. This character is U+2642 (MALE SIGN) in the Miscellaneous Symbols block (U+2600–U+26FF)—the standard symbol for male gender, used in forms, profiles, scientific content, and inclusive design.

Render it with ♂, ♂, ♂, or CSS escape \2642. For the female sign use ♀ (♀, U+2640). Do not confuse ♂ with the combined male and female sign (⚥, U+26A5).

⚡ Quick Reference — Male Sign

Unicode U+2642

Miscellaneous Symbols

Hex Code ♂

Hexadecimal reference

HTML Code ♂

Decimal reference

Named Entity ♂

HTML5 named entity for U+2642

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2642
Hex code       ♂
HTML code      ♂
Named entity   ♂
CSS code       \2642
Meaning        Male gender symbol
Related        U+2640 = Female sign (♀); U+26A5 = Male and female (⚥)
1

Complete HTML Example

This example demonstrates the Male Sign (♂) using hexadecimal code, decimal HTML code, the named entity ♂, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2642";
  }
 </style>
</head>
<body>
<p>Male Sign using Hexadecimal: &#x2642;</p>
<p>Male Sign using HTML Code: &#9794;</p>
<p>Male Sign using HTML Entity: &male;</p>
<p id="point">Male Sign using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Male Sign entity is universally supported in modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the male sign (♂) in form context and compared with the female sign (♀):

Gender label ♂ Male
Large glyph
vs female sign ♂ (male)   vs   ♀ (female)
Numeric refs &#x2642; &#9794; &male;
Named entity &male; is the readable option

🧠 How It Works

1

Hexadecimal Code

&#x2642; uses the Unicode hexadecimal value 2642 to display the Male Sign. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9794; uses the decimal Unicode value 9794 to display the same character.

HTML markup
3

Named Entity

&male; is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.

HTML markup
4

CSS Entity

\2642 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.

CSS stylesheet
=

Same visual result

All four methods produce the Male Sign glyph: . Unicode U+2642 sits in the Miscellaneous Symbols block (U+2600–U+26FF).

Use Cases

The Male Sign (♂) commonly appears in:

📄 Forms & UI

Gender selection in registration, profiles, and survey forms alongside text labels.

🏥 Medical content

Biology, healthcare, and anatomy pages referencing male gender symbols.

🎓 Education

Science textbooks, biology courses, and educational materials on reproduction.

🔍 Scientific notation

Research papers, datasets, and documentation using standard Unicode symbols.

🚪 Signage

Digital restroom and facility indicators when paired with accessible text.

📝 Reference guides

Symbol dictionaries, Unicode charts, and HTML entity reference pages.

💡 Best Practices

Do

  • Use &male; for readable source markup
  • Pair ♂ with clear text labels in forms and UI
  • Add aria-label when the symbol stands alone
  • Pick one style (hex / decimal / named) per project
  • Test glyph rendering across browsers and devices

Don’t

  • Rely on the symbol alone for critical gender selection
  • Confuse ♂ with ⚥ (combined) or ♀ (female)
  • Mix entity styles randomly in one file
  • Put CSS escape \2642 in HTML text nodes
  • Use padded Unicode notation like U+02642—the correct value is U+2642

Key Takeaways

1

Three HTML references all render ♂

&#x2642; &#9794; &male;
2

For CSS stylesheets, use the escape in the content property

\2642
3

Unicode U+2642 — MALE SIGN in Miscellaneous Symbols

4

Prefer &male; for readability—it’s the most self-descriptive named entity

5

Always pair the symbol with explanatory text in forms and accessible UI

❓ Frequently Asked Questions

Use &male; (named), &#x2642; (hex), &#9794; (decimal), or \2642 in CSS content. All produce ♂.
U+2642 (MALE SIGN). Miscellaneous Symbols block (U+2600–U+26FF). Hex 2642, decimal 9794. Named entity: &male;.
In gender selection forms, user profiles, medical and biology content, scientific notation, digital signage, and educational material. Always include accessible text alongside the symbol.
HTML entities (&male;, &#9794;, or &#x2642;) go directly in markup. The CSS escape \2642 is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.
Yes. &male;, &#9794;, and &#x2642; are equivalent in modern browsers and all render ♂. Do not confuse with U+26A5 (combined sign) or &female; (U+2640).

Explore More HTML Entities!

Discover 1500+ HTML character references — gender symbols, math operators, arrows, and more.

All HTML Entities →

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