HTML Entity for Music Sharp Sign (♯)

What You'll Learn
How to display the Music Sharp Sign (♯) in HTML using named, hexadecimal, decimal, and CSS escape methods. This character is U+266F (MUSIC SHARP SIGN) in the Miscellaneous Symbols block (U+2600–U+26FF)—the standard symbol for raising a note by one semitone in Western music notation.
Render it with the named entity ♯, ♯, ♯, or CSS escape \266F. Use it in chord names (e.g. F♯), scale charts, and music theory content. Pair with Music Flat Sign (♭, ♭) and Music Natural Sign (♮, ♮) in the accidentals family.
⚡ Quick Reference — Music Sharp Sign
U+266FMiscellaneous Symbols
♯Hexadecimal reference
♯Decimal reference
♯Most readable in music markup
Name Value
──────────── ──────────
Unicode U+266F
Hex code ♯
HTML code ♯
Named entity ♯
CSS code \266F
Meaning Raise note by one semitone (sharp)
Related U+266D = flat (♭, ♭)
U+266E = natural (♮, ♮)Complete HTML Example
This example demonstrates the Music Sharp Sign (♯) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\266F";
}
</style>
</head>
<body>
<p>Music Sharp Sign using Hexadecimal: ♯</p>
<p>Music Sharp Sign using HTML Code: ♯</p>
<p>Music Sharp Sign using Named Entity: ♯</p>
<p id="point">Music Sharp Sign using CSS Entity: </p>
</body>
</html>🌐 Browser Support
U+266F is widely supported wherever Unicode Miscellaneous Symbols render correctly:
👀 Live Preview
See the Music Sharp Sign (♯) in music notation contexts:
🧠 How It Works
Named Entity
♯ is the HTML named entity for the Music Sharp Sign—often preferred in readable chord and scale markup.
Hexadecimal Code
♯ uses the Unicode hexadecimal value 266F. The x prefix indicates hexadecimal format.
Decimal HTML Code
♯ uses the decimal Unicode value 9839 to display the same character.
CSS Entity
\266F is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All four methods produce: ♯. Unicode U+266F in Miscellaneous Symbols. Related: Music Flat Sign (♭, ♭).
Use Cases
The Music Sharp Sign (♯) is commonly used in:
Digital scores and web-based music viewers.
Chord names like F♯, C♯, and G♯ in guitar and piano charts.
Theory lessons, scale diagrams, and interval explanations.
Tuners, metronomes, and practice tools with key signatures.
Song posts and musician blogs with proper accidentals.
Unicode charts and HTML entity documentation.
💡 Best Practices
Do
- Use
♯for readable chord and scale markup - Pair with ♭ and ♮ when showing all three accidentals
- Use serif or music fonts for clearer glyph rendering
- Add
aria-label(e.g. “F sharp”) for screen readers - Serve pages with UTF-8 (
<meta charset="utf-8">)
Don’t
- Substitute
#(number sign) for ♯ in formal notation - Confuse
♯(♯) with hashtag or hash symbols - Put CSS escape
\266Fin HTML text nodes - Mix entity styles randomly in one file
- Rely on the symbol alone without accessible description
Key Takeaways
❓ Frequently Asked Questions
♯ (named), ♯ (hex), ♯ (decimal), or \266F in CSS content. All produce ♯.U+266F (MUSIC SHARP SIGN). Miscellaneous Symbols block (U+2600–U+26FF). Hex 266F, decimal 9839. Named entity: ♯.U+266F, ♯) is the proper music sharp symbol. # (U+0023, number sign) is a different character used for hashtags and numbering—not for formal music notation.♯, ♯, or ♯) go directly in markup. The CSS escape \266F is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.Explore More HTML Entities!
Discover 1500+ HTML character references — music symbols, math operators, and more.
8 people found this page helpful
