Music Sharp Sign (♯) is the accidental at Unicode U+266F that raises a pitch by one semitone. HTML5 provides ♯. Example: F♯ for F-sharp.
Remember
Character ♯
Unicode U+266F
Named entity ♯
Hex entity ♯
Decimal ♯
CSS escape \266F
Named, hex, decimal, CSS, and a typed character all produce the same glyph: ♯.
Using Named Entity: ♯
Using Hex Code: ♯
Using HTML Code: ♯
Using CSS Entity: ♯
Key: F♯ major
How It Works
1. Named:♯ is the clearest HTML form and renders ♯.
2. Hex:U+266F → ♯ in HTML. Same result as the named entity.
3. Decimal: same code point as 9839 → ♯. Same result as hex and named.
4. CSS: use \266F in content (not an HTML entity). #point::after appends that ♯ after the paragraph text.
Pitfalls & Tips
Common mistakes when working with the Music Sharp Sign.
Prefer
Use ♯
The named form is clearer than numeric references and is defined in HTML5.
vs #
Not the hash key
Keyboard # is U+0023 (NUMBER SIGN). Prefer ♯ for music accidentals.
vs ♭
Not flat
♭ lowers pitch. ♯ raises pitch. Do not swap them.
CSS vs HTML
Do not mix escapes
\266F belongs in CSS. ♯ / ♯ / ♯ belong in HTML.
Encoding
Declare UTF-8
If you type ♯ directly, keep <meta charset="UTF-8"> so the file is not misread.
Semicolon
End references
Always finish with ; — write ♯, not &sharp.
Compatibility
Browser Support
Music Sharp Sign (U+266F) and its entity forms (♯, ♯, ♯, CSS \\266F) are supported in all mainstream browsers with a Unicode-capable font.
✓ Universal support
Music Sharp Sign (♯)
Encode with named, hex, decimal, or CSS escape — or type ♯ directly in UTF-8 HTML.
100%Browser coverage
Google ChromeSupported
Yes
Microsoft EdgeSupported
Yes
Mozilla FirefoxSupported
Yes
Apple SafariSupported
Yes
OperaSupported
Yes
Internet ExplorerIE 9+
Yes*
U+266F / ♯Full support
Bottom line: Prefer ♯ in music HTML. Use \\266F only inside CSS content.
Remember
Key Takeaways
Unicode: Music Sharp Sign is U+266F (decimal 9839).
HTML: prefer ♯.
CSS: use \266F inside content for generated text.
Lookalike: not # — use with ♭ and ♮.
One line:U+266F → prefer ♯ (also ♯ / CSS \266F).
Frequently Asked Questions
Use ♯ (named), ♯ (hex), ♯ (decimal), or the CSS escape \266F in the content property. All render ♯. Prefer ♯ in music HTML.
U+266F (MUSIC SHARP SIGN). Hex 266F, decimal 9839. It belongs to the Miscellaneous Symbols block.
Yes. HTML5 defines ♯ for ♯.
Use it in chord charts, key names, sheet-music text, and music education — for example F♯ major or C♯.
HTML entities (♯, ♯, or ♯) go in markup. The CSS escape \266F is used in stylesheets (usually in the content property of ::before/::after). Both render ♯.
No. Sharp is ♯ (♯, U+266F). Hash/number sign is # (U+0023). Flat is ♭ (♭, U+266D). Different characters.
🤔
Did you know?
Music Sharp Sign is Unicode U+266F (decimal 9839) — in Miscellaneous Symbols. HTML5 provides ♯. It raises a pitch by a semitone (e.g. F♯). Pair it with Flat ♭ (♭) and Natural ♮ (♮). Not the same as the hash/number sign # (U+0023).