More
More
Masculine Ordinal Indicator HTML entity º
º is the HTML entity for Masculine Ordinal Indicator º (U+00BA). Copy º, º and the CSS, JavaScript, Python and URL escapes.
- Entity
º- Legacy form
º(no semicolon)- Code point
- U+00BA
- Unicode name
- MASCULINE ORDINAL INDICATOR
- Block
- Latin-1 Supplement
- Category
- Other letter (Lo)
- 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: "\BA";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u00BA"Also valid in JSON. | |
| Python | "\u00ba"Python 3 string literal. | |
| Python by name | "\N{MASCULINE ORDINAL INDICATOR}"Readable alternative using the Unicode name. | |
| URL | %C2%BAPercent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | C2 BA2 bytes. | |
| UTF-16 | 00BA1 code unit, which is what JavaScript length counts. |
When to use it
The masculine ordinal in Spanish, Portuguese and Italian: 1º (primero). It is often confused with the degree sign °, which is a circle at a different height.
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 latin letters with accents
ÀCapital A with GraveµMicro SignÁCapital A with AcuteªFeminine Ordinal IndicatorÂCapital A with CircumflexÃCapital A with TildeÄCapital A with DiaeresisÅCapital A with Ring Above
All latin letters with accents · 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).