HTML Entity Detail

HTML Entity - Macron

Macron is a diacritical marks and accent modifiers used in multilingual text. This HTML entity enables web developers to display this character reliably across all browsers without encoding issues.

Symbol preview
¯
Unicode

U+000AF

HTML entity

¯

CSS code

Usage Examples

Use this HTML entity in combination with base letters to create accented characters in languages like French, Spanish, and Vietnamese.

Common Mistakes

⚠️

Mistake: Confusing a standalone diacritical mark with a precomposed accented letter

Fix: Standalone diacritical marks (like ¨ or ˆ) are combining characters or spacing marks. Precomposed letters (like ü or ê) are single characters. Use the precomposed form for normal text and the standalone form only when discussing the mark itself.

⚠️

Mistake: Using diacritical marks with the wrong base letter

Fix: Not every diacritic combines with every letter. For example, ñ (n-tilde) is valid in Spanish, but m-tilde is not a standard character in any language.

Macron

Select any code to highlight it before copying.

Category: Diacritical Marks
Unicode U+000AF
Hex Code ¯
HTML Code ¯
HTML Entity ¯
CSS Code
Windows Shortcut Alt 0175
Mac Shortcut ⇧⌥0
HTML code example
Last updated: 21 Jun 2026