HTML Entity for Masculine Ordinal Indicator (º)

What You'll Learn
How to display the Masculine ordinal indicator (º) in HTML using named, hexadecimal, decimal, and CSS entity methods. This character is U+00BA (MASCULINE ORDINAL INDICATOR) in the Latin-1 Supplement block (U+0080–U+00FF)—used in Spanish, Portuguese, Italian, and Galician to form masculine ordinals (e.g. 1º primero, 2º segundo).
Render it with º, º, º, or CSS escape \00BA. Pair it with a number for correct ordinals: 1º → 1º. For feminine ordinals use ª (ª, U+00AA). Do not confuse º with the degree sign (°, U+00B0).
⚡ Quick Reference — Masculine Ordinal Indicator
U+00BALatin-1 Supplement block
ºHexadecimal reference
ºDecimal reference
ºMost readable option
Name Value
──────────── ──────────
Unicode U+00BA
Hex code º
HTML code º
Named entity º
CSS code \00BA
Meaning Masculine ordinal suffix (1º, 2º)
Related U+00AA = Feminine ordinal (ª); U+00B0 = Degree sign (°)Complete HTML Example
This example demonstrates the Masculine ordinal indicator (º) using hexadecimal code, decimal HTML code, the named entity º, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\00BA";
}
</style>
</head>
<body>
<p>Masculine Ordinal using Hexadecimal: º</p>
<p>Masculine Ordinal using HTML Code: º</p>
<p>Masculine Ordinal using HTML Entity: º</p>
<p id="point">Masculine Ordinal using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The Masculine ordinal indicator entity is universally supported in all modern browsers:
👀 Live Preview
See the Masculine ordinal indicator (º) in Spanish and Portuguese ordinal contexts:
🧠 How It Works
Hexadecimal Code
º uses the Unicode hexadecimal value 00BA to display the Masculine ordinal indicator. The x prefix indicates hexadecimal format.
Decimal HTML Code
º uses the decimal Unicode value 186 to display the same character.
Named Entity
º is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.
CSS Entity
\00BA is used in CSS stylesheets, particularly in the content property of pseudo-elements like ::before and ::after.
Same visual result
All four methods produce the Masculine ordinal indicator: º. Unicode U+00BA sits in the Latin-1 Supplement block (U+0080–U+00FF).
Use Cases
The Masculine ordinal indicator (º) commonly appears in:
Ordinals like 1º, 2º, 3º in articles, legal text, and rankings.
Masculine ordinals in Brazilian and European Portuguese web content.
1º de enero, 2º edición, and similar formatted dates.
Numbered articles, clauses, and official references in Romance languages.
Language learning sites teaching Spanish and Portuguese ordinals.
i18n content with proper ordinal typography per locale.
💡 Best Practices
Do
- Use
ºfor readable source markup - Place the indicator immediately after the number (1º)
- Use º for masculine and ª (
ª) for feminine ordinals - Serve pages with UTF-8 (
<meta charset="utf-8">) - Pick one entity style (hex / decimal / named) per project
Don’t
- Confuse º (ordinal) with ° (degree sign)
- Use º when the feminine ordinal ª is required
- Insert a space between the number and ordinal (write 1º, not 1 º in Spanish typography)
- Put CSS escape
\00BAin HTML text nodes - Use padded Unicode notation like U+000BA—the correct value is
U+00BA
Key Takeaways
Three HTML references all render º
º º ºFor CSS stylesheets, use the escape in the content property
\00BAUnicode U+00BA — MASCULINE ORDINAL INDICATOR (not degree °)
Prefer º for readability—it’s the most self-descriptive named entity
Pair with numbers for ordinals: 1º → 1º
❓ Frequently Asked Questions
º (named), º (hex), º (decimal), or \00BA in CSS content. Example: 1º renders 1º.U+00BA (MASCULINE ORDINAL INDICATOR). Latin-1 Supplement block (U+0080–U+00FF). Hex 00BA, decimal 186. Named entity: º.º, º, or º) go directly in markup. The CSS escape \00BA is used in stylesheets, typically in the content property of pseudo-elements. Same visual result, different layers of the stack.ª.Explore More HTML Entities!
Discover 1500+ HTML character references — ordinals, symbols, math operators, and more.
8 people found this page helpful
