HTML Entity for Uppercase O (O)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+004F

What Is Uppercase O?

Uppercase O (O) is the Basic Latin character at Unicode U+004F (LATIN CAPITAL LETTER O). It is a core ASCII letter of the Latin alphabet. You can type O directly in HTML, or write a numeric character reference when you need an explicit entity form.

Remember
Character     O
Unicode       U+004F
Hex entity    O
Decimal       O
CSS escape    \4F
Named entity  (none)
Not the same  Ó · Ο · 0

Prefer typing O in normal page text. Use O / O for CSS content, generated markup, or when encoding must be explicit.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct characterOHTML text (preferred)
Hex entityOHTML markup
Decimal entityOHTML markup
CSS escape\4FStylesheet content
Named entity—Not defined in HTML5
Lowercase pairo (U+006F)Small letter o

When to Use Which

SituationUse
Normal paragraphs, headings, labelsType O
Need an entity in HTML sourceO or O
Capital O with acute (Ó)Ó / Ó
O with dot above and macronȰ (Ȱ)
Lowercase oo / o
Generated text via ::before / ::aftercontent: "\4F"

Live Preview

Uppercase O rendered next to related letters.

Example Letter O is the 15th letter.
Large glyph O
Compared O   o   Ó   Ο   0
With entities Hex: O | Decimal: O

Complete HTML Example

One page that shows Uppercase O with hex, decimal, typed character, and CSS escape. Use View Output or open the live editor.

Hex + Decimal + Typed + CSS

Four ways to produce O, plus a short alphabet sentence.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Uppercase O in HTML</title>
  <style>
    #point::after {
      content: "\4F";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x4F;</p>
  <p>Using HTML Code: &#79;</p>
  <p id="point">Using CSS Entity: </p>
  <p>Typed directly: O</p>
  <p>Example: Letter O is the 15th letter.</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex / decimal: U+004F → &#x4F; or &#79;. The browser turns either into O.

2. Typed: most keyboards can type O directly in UTF-8 HTML — usually the simplest option.

3. CSS: use \4F in content (not an HTML entity). #point::after appends that O after the paragraph text.

4. Example: write normal text with a typed O for everyday content.

Pitfalls & Tips

Common mistakes when working with Uppercase O.

Type it

Prefer the typed character

For body text, type O. Entities are useful for CSS escapes and generated content, not everyday paragraphs.

Named?

No named entity for plain O

HTML5 does not define &O;. Use &#x4F; / &#79;, or type O.

Ó

Not an accented O

&Oacute; is U+00D3 (Ó). Use accented entity pages when you need diacritics on O.

Ο

Not Greek Omicron

&Omicron; (U+039F) can look similar in some fonts but is a different script and code point.

vs 0

Not digit zero

Letter O (U+004F) and digit 0 (U+0030) are different characters — important for IDs, passwords, and OCR.

CSS vs HTML

Do not mix escapes

\4F belongs in CSS strings. &#x4F; / &#79; belong in HTML.

Browser Support

Uppercase O (U+004F) and its entity forms (&#x4F;, &#79;, CSS \\4F) are supported in all mainstream browsers — it is core Basic Latin (ASCII).

✓ Universal support

Uppercase O (O)

Encode with hex, decimal, CSS escape, or type the character — same ASCII code point everywhere.

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+004F / entities Full support

Bottom line: Prefer typing O in HTML text. Use &#x4F; / &#79; when you need an entity, and \\4F only inside CSS content.

Key Takeaways

  • Unicode: this letter is U+004F (decimal 79) — glyph O.
  • HTML: type O, or use &#x4F; / &#79; — no named entity.
  • CSS: use \4F inside content for generated text.
  • Watch out: plain O ≠ &Oacute; ≠ Greek &Omicron; ≠ digit 0.

One line: U+004F → type O / &#x4F; / &#79; / CSS \4F.

Frequently Asked Questions

Type O directly, or use &#x4F; (hex), &#79; (decimal), or the CSS escape \4F in content. There is no named HTML entity for U+004F.
U+004F (LATIN CAPITAL LETTER O). Hex 4F, decimal 79. It belongs to Basic Latin (ASCII).
No. Plain ASCII letters do not have named HTML entities. Use numeric references like &#79; or &#x4F; when you need an entity form.
Prefer typing O in normal page text. Use entities for CSS content, generated markup, or when encoding must be explicit.
HTML entities (&#79; or &#x4F;) go in markup. The CSS escape \4F goes in stylesheet strings (usually content on ::before/::after).
No. O is Latin capital O (U+004F). Ó is O with acute (&Oacute;, U+00D3). Ο is Greek capital Omicron (&Omicron;, U+039F). 0 is digit zero (U+0030).

Did you know?

Uppercase O (O) is Unicode U+004F (decimal 79) — LATIN CAPITAL LETTER O in Basic Latin (ASCII). HTML5 has no named entity for it — type O directly, or use &#x4F; / &#79; when you need an entity form. Do not confuse it with accented forms like &Oacute; (Ó) or &Otilde; (Õ), Greek Omicron (&Omicron;, Ο), or digit zero (0).

Next: Uppercase O Above Dot Macron

Learn the HTML entity for uppercase O with dot above and macron (U+0230).

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