Digit nine (9) is the Basic Latin character at Unicode U+0039. You can type 9 directly in HTML, or write it with a numeric character reference when you need an explicit entity form.
Remember
Character 9
Unicode U+0039
Hex entity 9
Decimal 9
CSS escape \0039
Named entity (none)
All of these produce the same glyph: 9. Prefer typing 9 in normal page text; use entities for CSS content, generated markup, or when encoding must be explicit.
Reference
Quick Reference
One table for every form you will actually use.
Form
Code
Where it goes
Direct character
9
HTML text (default choice)
Hex entity
9
HTML markup
Decimal entity
9
HTML markup
CSS escape
\0039
Stylesheet content
Named entity
—
Not defined in HTML5
When to use which
Situation
Use
Normal paragraphs, headings, labels
Type 9
Need an entity in HTML source
9 or 9
Generated text via ::before / ::after
content: "\0039"
Looking for &nine; or similar
Does not exist — use numeric form
See it
Live Preview
Digit nine rendered in common UI contexts.
Inline textYou have 9 unread emails.
Large glyph9
Date / time2026-09-19 19:09
Monospaceindex 9, value 9
With entitiesHex: 9 | Decimal: 9
Code
Complete HTML Example
One page that shows digit nine with the hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.
Hex + Decimal + CSS + Typed
All four ways to produce 9 in a single document.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Digit Nine (9) in HTML</title>
<style>
#point::after {
content: "\0039";
}
</style>
</head>
<body>
<p>Digit Nine using Hex Code: 9</p>
<p>Digit Nine using HTML Code: 9</p>
<p id="point">Digit Nine using CSS Entity: </p>
<p>Typed directly: 9</p>
</body>
</html>
Digit Nine using Hex Code: 9
Digit Nine using HTML Code: 9
Digit Nine using CSS Entity: 9
Typed directly: 9
How It Works
1. Hex:U+0039 → 9 in HTML. The browser turns it into 9.
2. Decimal: same code point as 57 → 9. Same result as hex.
3. CSS: use \0039 in content (not an HTML entity). #point::after appends that 9 after the paragraph text.
4. Typed 9: best for normal text. All four lines show the same digit.
Pitfalls & Tips
Common mistakes when working with digit nine entities.
Named?
No &nine;
HTML5 does not define a named entity for ASCII digits. Use numeric forms.
CSS vs HTML
Do not mix escapes
\0039 belongs in CSS. 9 / 9 belong in HTML.
Lookalikes
Related forms differ
Circled or dingbat nines (such as ➈) are different Unicode characters — not the same as U+0039.
Default
Type 9 when you can
Entities are for encoding needs — not required for ordinary body text.
Semicolon
End references
Always finish with ; — write 9, not 9.
CSS escape
Pad short hex
In CSS content, prefer \0039 (six hex digits) so the escape does not swallow the next character.
Compatibility
Browser Support
Digit nine (U+0039) and its numeric entity forms (9, 9, CSS \\0039) are supported in all mainstream browsers.
✓ Universal support
Digit Nine (9)
Type 9, or encode with hex, decimal, or CSS escape — same glyph everywhere.
100%Browser coverage
Google ChromeSupported
Yes
Microsoft EdgeSupported
Yes
Mozilla FirefoxSupported
Yes
Apple SafariSupported
Yes
OperaSupported
Yes
Internet ExplorerAll versions
Yes
U+0039 / entitiesFull support
Bottom line: Use a typed 9 for normal text. Prefer 9 or 9 in HTML when encoding must be explicit, and \\0039 only inside CSS content.
Remember
Key Takeaways
Unicode: digit nine is U+0039 (decimal 57).
HTML: use 9 or 9 when you need an entity.
CSS: use \0039 inside content for generated text.
Default: type 9 directly unless encoding requires an entity.
One line:U+0039 → type 9, or encode as 9 / 9 / CSS \0039.
Frequently Asked Questions
Use 9 (hex), 9 (decimal), or the CSS escape \0039 in the content property. All render the digit nine (9). In most cases you can also type 9 directly.
U+0039 (hex 0039, decimal 57). It belongs to the Basic Latin (ASCII) block.
No. ASCII digits like 9 do not have named HTML entities in HTML5, so you should use numeric references like 9 or 9 when you need an entity form.
Use entities when generating content in CSS, when you want explicit encoding, or when outputting into contexts where escaping is required. For normal body text, typing 9 directly is usually best.
HTML entities (9 or 9) go in markup. The CSS escape \0039 is used in stylesheets (usually in the content property of ::before/::after). Both render 9.
No. Digit nine is U+0039. Circled and other stylized nines (such as dingbat circled sans-serif ➈) are different Unicode characters.
🤔
Did you know?
Digit nine is Unicode U+0039 (decimal 57). HTML5 has no named entity for it — use 9 or 9 when you need an entity form.