HTML Entity for Eighth Note (♪)

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

What You'll Learn

How to display the Eighth Note (♪) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+266A (EIGHTH NOTE) in the Miscellaneous Symbols block (U+2600–U+26FF)—a musical symbol used in sheet music, notation, lyrics, chord charts, and music education.

Render it with ♪, ♪, the named entity ♪, or CSS escape \266A. Unlike many decorative Dingbats, the eighth note has a standard named entity for readable music markup. Compare ♫ (beamed eighth notes, U+266B) when you need two notes on one beam.

⚡ Quick Reference — Eighth Note

Unicode U+266A

Miscellaneous Symbols

Hex Code ♪

Hexadecimal reference

HTML Code ♪

Decimal reference

Named Entity ♪

Most readable in music markup

Reference Table
Name           Value
────────────   ──────────
Unicode        U+266A
Hex code       ♪
HTML code      ♪
Named entity   ♪
CSS code       \266A
Related        U+266B = Beamed eighth notes (♫)
1

Complete HTML Example

This example demonstrates the Eighth Note (♪) using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\266A";
  }
 </style>
</head>
<body>
<p>Eighth Note using Hexadecimal: &#x266A;</p>
<p>Eighth Note using HTML Code: &#9834;</p>
<p>Eighth Note using HTML Entity: &sung;</p>
<p id="point">Eighth Note using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+266A is widely supported wherever Unicode Miscellaneous Symbols render correctly:

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

👀 Live Preview

See the Eighth Note (♪) in music and notation contexts:

Inline text Rhythm: four ♪ notes per bar in 4/4 time.
Large glyph
Lyrics cue ♪ Verse 1 — sing along here
vs beamed Single ♪ vs beamed ♫
Numeric refs &#x266A; &#9834; &sung;

🧠 How It Works

1

Hexadecimal Code

&#x266A; uses the Unicode hexadecimal value 266A to display the Eighth Note. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#9834; uses the decimal Unicode value 9834 to display the same character. This is one of the most commonly used methods.

HTML markup
3

Named Entity

&sung; is the semantic named entity for the Eighth Note—the easiest to read in source HTML for music-related content.

HTML markup
4

CSS Entity

\266A 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 Eighth Note glyph: . Unicode U+266A sits in the Miscellaneous Symbols block (U+2600–U+26FF).

Use Cases

The Eighth Note (♪) commonly appears in:

🎵 Sheet music

Web-based scores, tabs, and lightweight notation viewers.

🎓 Music education

Theory lessons, rhythm exercises, and tutorial content.

📝 Lyrics & chords

Song lyrics, chord diagrams, and songwriting tools.

💻 Music apps

Notation editors, metronomes, and theory practice UIs.

📰 Blogs & reviews

Music articles, composer bios, and album write-ups.

🎹 Lesson sites

Piano, guitar, and instrument lesson pages with rhythm cues.

💡 Best Practices

Do

  • Use &sung; for readable music-related markup
  • Pick one style (hex / decimal / named) per project
  • Use fonts that support Miscellaneous Symbols (Segoe UI Symbol, etc.)
  • Add aria-label (e.g. “eighth note”) when the symbol conveys meaning
  • Serve pages with UTF-8 (<meta charset="utf-8">)

Don’t

  • Confuse ♪ (single eighth note) with ♫ (beamed eighth notes U+266B)
  • Use CSS escape \266A inside HTML text nodes
  • Assume all decorative fonts render ♪ clearly
  • Rely on Unicode alone for professional engraved scores
  • Mix entity styles randomly in one file

Key Takeaways

1

Three HTML references plus CSS all render ♪

&#x266A; &#9834; &sung;
2

For CSS stylesheets, use the escape in the content property

\266A
3

Unicode U+266A — EIGHTH NOTE in Miscellaneous Symbols

4

Prefer &sung; for readability in music markup

5

Use ♫ (U+266B) when you need two beamed eighth notes instead

❓ Frequently Asked Questions

Use &#x266A; (hex), &#9834; (decimal), &sung; (named), or \266A in CSS content. All produce ♪.
U+266A (EIGHTH NOTE). Miscellaneous Symbols block (U+2600–U+26FF). Hex 266A, decimal 9834. Used in music notation and music-related content.
In music websites and sheet music, educational music content, song lyrics and chord charts, music theory apps, and any HTML content related to musical notation.
HTML entities (&#9834;, &#x266A;, or &sung;) go directly in markup. The CSS escape \266A is used in stylesheets, typically in the content property of ::before or ::after. Same visual result, different layers of the stack.
Yes. &sung;, &#9834;, and &#x266A; are equivalent in modern browsers and all render ♪.

Explore More HTML Entities!

Discover 1500+ HTML character references — music 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