HTML Entity for Spacing Macron (¯)

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

What You'll Learn

How to display the Spacing Macron (¯) in HTML using hexadecimal, decimal, named entity, and CSS escape methods. This character is U+00AF (MACRON) in the Latin-1 Supplement block (U+0080–U+00FF)—a standalone horizontal diacritical mark used in linguistics and typography to indicate long vowels or stress.

Render it with ¯, ¯, the named entity ¯, or CSS escape \00AF. Do not confuse U+00AF with U+0304 (̄, combining macron)—see the Combining Macron tutorial for the attachable mark used above base letters.

⚡ Quick Reference — Spacing Macron

Unicode U+00AF

Latin-1 Supplement (U+0080–U+00FF)

Hex Code ¯

Hexadecimal reference

HTML Code ¯

Decimal reference

Named Entity ¯

Standard HTML named entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+00AF
Hex code       ¯
HTML code      ¯
Named entity   ¯
CSS code       \00AF
Type           Spacing diacritical mark
Not the same   U+0304 = combining macron (̄)
Block          Latin-1 Supplement (U+0080–U+00FF)
1

Complete HTML Example

A simple example showing ¯ using hexadecimal code, decimal HTML code, the named entity, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\00AF";
  }
 </style>
</head>
<body>
<p>Spacing macron (hex): &#x00AF;</p>
<p>Spacing macron (decimal): &#175;</p>
<p>Spacing macron (named): &macr;</p>
<p id="point">Spacing macron (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Spacing Macron (¯) is widely supported in all modern browsers:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Spacing Macron (¯) in linguistic and notation contexts:

Single symbol ¯
Linguistic note Long vowel mark ¯ above base letter
Named entity &macr; renders as ¯
Not the same as Combining macron ̄ (U+0304)  |  Overline ‾
Numeric refs &#x00AF; &#175; &macr; \00AF

🧠 How It Works

1

Hexadecimal Code

&#x00AF; uses the Unicode hexadecimal value 00AF to display the spacing macron.

HTML markup
2

Decimal HTML Code

&#175; uses the decimal Unicode value 175 for the same character.

HTML markup
3

Named Entity

&macr; is the standard HTML named entity for U+00AF—readable and widely supported in linguistic markup.

HTML markup
4

CSS Entity

\00AF is used in CSS stylesheets in the content property of pseudo-elements for decorative macron markers.

CSS stylesheet
=

Same visual result

All four methods render ¯. Unicode U+00AF in Latin-1 Supplement (U+0080–U+00FF).

Use Cases

The Spacing Macron (¯) commonly appears in:

💬 Linguistic notation

Dictionaries and language docs showing long-vowel or stress marks.

📝 Phonetic transcription

IPA and pronunciation guides referencing macron placement.

📚 Academic papers

Research on Māori, Latin, and other languages using macron diacritics.

🏫 Educational content

Language-learning tutorials explaining vowel length notation.

📄 Technical documentation

Character-set references and encoding guides.

🌐 Typography

Design systems documenting Latin diacritical symbols.

💡 Best Practices

Do

  • Use &macr; when readability matters in HTML source
  • For letters with macrons, prefer precomposed UTF-8 or combining U+0304
  • Set <meta charset="utf-8"> for reliable rendering
  • Distinguish spacing macron ¯ from combining macron ̄
  • Pick one reference style per project for consistency

Don’t

  • Confuse U+00AF (¯, &macr;) with U+0304 (combining macron)
  • Use padded Unicode notation like U+000AF—the correct value is U+00AF
  • Use CSS escape \00AF in HTML text nodes
  • Use ¯ alone when you need a full letter such as ā (a with macron)
  • Assume every font renders the macron identically—test your typeface

Key Takeaways

1

Four ways to render U+00AF in HTML and CSS

&#x00AF; &macr;
2

For CSS stylesheets, use \00AF in the content property

3

Unicode U+00AF — MACRON / SPACING MACRON (¯)

4

U+0304 is the combining macron—different from ¯

5

Previous: Spacing Cedilla   Next: Sparkle

❓ Frequently Asked Questions

Use &#x00AF; (hex), &#175; (decimal), &macr; (named), or \00AF in CSS content. All four render ¯.
U+00AF (MACRON). Latin-1 Supplement (U+0080–U+00FF). Hex 00AF, decimal 175, named &macr;.
No. ¯ (U+00AF) is a spacing character with entity &macr;. ̄ (U+0304) is a combining mark that attaches above a base letter. For precomposed letters like ā, use UTF-8 or &#x0101; directly.
For linguistic notation, phonetic transcription, technical documentation, academic papers, educational content, and pronunciation guides that reference the macron diacritic as a standalone symbol.
The named entity &macr; is more readable in source markup. Numeric codes (&#175; or &#x00AF;) are explicit and work everywhere. Both produce the same glyph (¯).

Explore More HTML Entities!

Discover 1500+ HTML character references — diacritics, symbols, 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