HTML Entity for Masculine Ordinal Indicator (º)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+00BA

What Is the Masculine Ordinal Indicator Entity?

Masculine ordinal indicator (º) is the Latin-1 Supplement character at Unicode U+00BA (MASCULINE ORDINAL INDICATOR). It marks masculine ordinals in Spanish and Portuguese — for example 1º, 2º, and 3º.

Remember
Character     º
Unicode       U+00BA
Named entity  º
Hex entity    º
Decimal       º
CSS escape    \00BA

Named, hex, decimal, CSS, and a typed character all produce the same glyph: º. Prefer º in HTML source for clarity.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entityºHTML markup (best default)
Hex entityºHTML markup
Decimal entityºHTML markup
CSS escape\00BAStylesheet content
Direct characterºUTF-8 HTML text

When to Use Which

SituationUse
Readable HTML sourceº
Numeric entity requiredº or º
Generated text via ::before / ::aftercontent: "\00BA"
Feminine ordinal ªª — see Feminine Ordinal Indicator
Degree / temperature °° (U+00B0) — different character

Live Preview

Masculine ordinal indicator in Spanish/Portuguese ranking contexts.

Ordinals 1º 2º 3º
Large glyph º
Named entity º → º
vs ª / ° º  |  ª  |  °
With entities Named: º | Hex: º | Decimal: º

Complete HTML Example

One page that shows this character with named, hex, decimal, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce º in a single document.

html
<!DOCTYPE html>
<html lang="es">
<head>
  <meta charset="UTF-8">
  <title>Masculine Ordinal (&ordm;)</title>
  <style>
    #point::after {
      content: "\00BA";
    }
  </style>
</head>
<body>
  <p>Using Named Entity: &ordm;</p>
  <p>Using Hex Code: &#x00BA;</p>
  <p>Using HTML Code: &#186;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Ordinal: 1&ordm; 2&ordm; 3&ordm;</p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &ordm; is the clearest HTML form and renders º.

2. Hex: U+00BA → &#x00BA; in HTML. Same result as the named entity.

3. Decimal: same code point as 186 → &#186;. Same result as hex.

4. CSS: use \00BA in content (not an HTML entity). #point::after appends that º after the paragraph text.

Pitfalls & Tips

Common mistakes when working with the masculine ordinal indicator.

Named

Prefer &ordm;

The named entity is clearer than numeric forms and is defined in HTML5.

Look-alikes

Not &deg;

Degree ° is U+00B0. Ordinal º is U+00BA. Do not mix them for temperatures vs rankings.

Gender

&ordm; ≠ &ordf;

Masculine is º. Feminine is ª. Pick the form that matches the noun gender.

CSS vs HTML

Do not mix escapes

\00BA belongs in CSS. &ordm; / &#x00BA; / &#186; belong in HTML.

Encoding

Declare UTF-8

If you type º directly, keep <meta charset="UTF-8"> so the file is not misread.

Semicolon

End references

Always finish with ; — write &ordm;, not &ordm.

Browser Support

Masculine ordinal indicator (U+00BA) and its entity forms (&ordm;, &#x00BA;, &#186;, CSS \\00BA) are supported in all mainstream browsers.

✓ Universal encoding

Masculine Ordinal (&ordm;)

Encode with named, hex, decimal, or CSS escape — or type º directly in UTF-8 HTML.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+00BA Full support

Bottom line: Prefer &ordm; for readable HTML. Use \\00BA only inside CSS content.

Key Takeaways

  • Unicode: this character is U+00BA (decimal 186).
  • HTML: prefer &ordm; — or use &#x00BA; / &#186;.
  • CSS: use \00BA inside content for generated text.
  • Watch out: &ordm; ≠ &ordf; ≠ &deg;.

One line: U+00BA → &ordm; / &#x00BA; / &#186; / CSS \00BA.

Frequently Asked Questions

Use &ordm; (named), &#x00BA; (hex), &#186; (decimal), or the CSS escape \00BA in the content property. All render º. Prefer &ordm; in HTML source.
U+00BA (MASCULINE ORDINAL INDICATOR). Hex 00BA, decimal 186. It belongs to the Latin-1 Supplement block.
Yes. &ordm; is the HTML5 named entity for º. The feminine ordinal is &ordf; (ª, U+00AA).
Use it for Spanish and Portuguese ordinals (1º, 2º), dates, rankings, and multilingual content that needs the masculine ordinal mark.
HTML entities (&ordm;, &#186;, or &#x00BA;) go in markup. The CSS escape \00BA is used in stylesheets (usually in the content property of ::before/::after). Both render º.
No. Degree is &deg; (°, U+00B0). Masculine ordinal is &ordm; (º, U+00BA). They look similar but are different characters.

Did you know?

Masculine ordinal indicator is Unicode U+00BA (decimal 186) — MASCULINE ORDINAL INDICATOR in Latin-1 Supplement. HTML5 provides &ordm; — used for Spanish/Portuguese ordinals like 1º and 2º. Feminine form is &ordf; (ª, U+00AA).

Next: Measured Angle

Continue to the next HTML entity in this sequence (U+2221).

Continue tutorial →

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