HTML Entity for Macron (̄)

What You'll Learn
How to display the combining macron (̄) in HTML using hexadecimal, decimal, and CSS escape methods. This character is U+0304 (COMBINING MACRON) in the Combining Diacritical Marks block (U+0300–U+036F)—a non-spacing diacritic placed immediately after a base letter to indicate a long vowel, overline, or phonetic stress.
Render it with ̄, ̄, or CSS escape \0304. There is no named HTML entity for U+0304. When a precomposed letter exists (e.g. ū for ū), prefer that for simpler markup and better searchability.
⚡ Quick Reference — Macron
U+0304Combining Diacritical Marks
̄Hexadecimal reference
̄Decimal reference
—Use numeric codes only
Name Value
──────────── ──────────
Unicode U+0304
Hex code ̄
HTML code ̄
Named entity (none)
CSS code \0304
Related U+00AF = spacing macron (¯); U+0331 = macron below (̱)Complete HTML Example
This example demonstrates the combining macron (̄) using hexadecimal code, decimal HTML code, and a CSS content escape. Place the entity right after the base letter:
<!DOCTYPE html>
<html>
<head>
<style>
#point::after{
content: "\0304";
}
</style>
</head>
<body>
<p>Macron using Hexadecimal: ā</p>
<p>Macron using HTML Code: ē</p>
<p>x<span id="point"></span> (CSS macron on x)</p>
</body>
</html>🌐 Browser Support
U+0304 is supported in all modern browsers when rendered with a Unicode-capable font:
👀 Live Preview
See the combining macron (̄) applied to letters in common contexts:
🧠 How It Works
Hexadecimal Code
̄ uses the Unicode hexadecimal value 0304. Place it immediately after the base letter—e.g. ā renders a with macron.
Decimal HTML Code
̄ uses the decimal Unicode value 772 to display the same combining mark after a base character.
CSS Entity
\0304 is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after to append the macron to adjacent text.
Same visual result
All three methods produce the combining macron on a base letter: ā. Unicode U+0304 sits in the Combining Diacritical Marks block (U+0300–U+036F). No named HTML entity—use numeric codes or precomposed letters when available.
Use Cases
The combining macron (̄) is commonly used in:
Phonetic transcription and notation for long vowels in IPA and related systems.
Māori, Hawaiian, Latin, and other languages that mark vowel length with a macron.
Proper diacritical marks in editorial, publishing, and multilingual web content.
Pronunciation guides and lexical entries showing long-vowel stress.
Overline notation such as x̄ for sample mean in statistics.
Language learning sites, textbooks, and course materials for vowel length.
💡 Best Practices
Do
- Place
̄or̄immediately after the base letter - Prefer precomposed characters (e.g.
ūfor ū) when available - Serve pages with UTF-8 (
<meta charset="utf-8">) - Test macron rendering across browsers and fonts
- Use consistent numeric style (hex or decimal) per project
Don’t
- Confuse U+0304 (combining) with U+00AF (spacing macron ¯)
- Insert a space between the base letter and the combining entity
- Expect a named entity—none exists for U+0304
- Put CSS escape
\0304in HTML text nodes - Use padded Unicode notation like U+00304—the correct value is
U+0304
Key Takeaways
Two HTML numeric references render the combining macron
̄ ̄For CSS stylesheets, use the escape in the content property
\0304Unicode U+0304 — COMBINING MACRON (non-spacing diacritic)
Combining Diacritical Marks block (U+0300–U+036F)
Always follow the base letter—e.g. ā not ̄a
❓ Frequently Asked Questions
̄ (hex) or ̄ (decimal) immediately after the base letter—e.g. ā. For CSS, use \0304 in content. There is no named entity.U+0304 (COMBINING MACRON). Combining Diacritical Marks block (U+0300–U+036F). Hex 0304, decimal 772. Attaches to the preceding character.̄ or ̄) go in markup after the base character. The CSS escape \0304 is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.̄ or ̄, or prefer precomposed letters like ū (U+016B) when a single code point exists for your character.Explore More HTML Entities!
Discover 1500+ HTML character references — diacritical marks, IPA symbols, math operators, and more.
8 people found this page helpful
