More
More
Macron HTML entity ¯
¯ is the HTML entity for Macron ¯ (U+00AF). Copy the decimal ¯ and hex ¯ codes plus CSS, JavaScript, Python and URL escapes.
- Entity
¯- Also written
¯- Legacy form
¯(no semicolon)- Code point
- U+00AF
- Unicode name
- MACRON
- Block
- Latin-1 Supplement
- Category
- Modifier symbol (Sk)
- Since
- Unicode 1.1
- Defined in
- HTML 4.01 and HTML5
Codes to copy
| HTML named | ¯Works in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | ¯Works in HTML and XML. | |
| HTML hex | ¯Works in HTML and XML. | |
| CSS | content: "\AF";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u00AF"Also valid in JSON. | |
| Python | "\u00af"Python 3 string literal. | |
| Python by name | "\N{MACRON}"Readable alternative using the Unicode name. | |
| URL | %C2%AFPercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | C2 AF2 bytes. | |
| UTF-16 | 00AF1 code unit, which is what JavaScript length counts. |
When to use it
¯ writes U+00AF (Macron), a modifier symbol from the Unicode Latin-1 Supplement block, encoded since Unicode 1.1. Typographic punctuation like this is usually inserted by an editor or a smart quotes setting; the entity is handy in hand-written HTML.
The name dates from HTML 4, so it works in every browser and in old email clients.
Browsers also accept the legacy form ¯ without a semicolon, for compatibility with old pages; new HTML should always end the reference with a semicolon.
More punctuation and typography
´Acute Accent«Left Guillemet¶Pilcrow¨Diaeresis·Middle Dot§Section Sign¸Cedilla¡Inverted Exclamation Mark
All punctuation and typography · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).