Using Hex Code: _
Using HTML Code: _
Using Named Entity: _
Using CSS Entity: _
user_name
How It Works
1. Hex:U+005F → _ in HTML. The browser turns it into _.
2. Decimal: same code point as 95 → _. Same result as hex.
3. Named:_ is the HTML5 name for this character (alias _).
4. CSS: use \5F in content (not an HTML entity). #point::after appends that _ after the paragraph text.
5. Typed:user_name shows the everyday approach — just type _ in UTF-8 source.
Pitfalls & Tips
Common mistakes when working with Underscore.
Look-alikes
_ ≠ combining underline ≠ ‿
U+005F is a spacing low line. Combining low line (U+0332) attaches under letters. Undertie (U+203F) is a different punctuation mark.
Default
Type _ in normal HTML
Entities are optional here. Use _ when you want encoding to be visible in the source.
CSS classes
Spaces are invalid
Use _ or - in class and ID names — never spaces.
CSS vs HTML
Do not mix escapes
\5F belongs in CSS. _ / _ / _ belong in HTML.
A11y
Read as punctuation
Screen readers often say “underscore.” Prefer clear words nearby when the mark carries meaning alone.
Semicolon
End references
Always finish with ; — write _, not &lowbar.
Compatibility
Browser Support
Underscore (U+005F) and its entity forms (_, _, _, CSS \\5F) are supported in all modern browsers as a Basic Latin / ASCII character.
✓ Universal encoding
Underscore (_)
Encode with named, hex, decimal, or CSS escape — or type _ directly in UTF-8 HTML.
100%Browser coverage
Google ChromeSupported
Yes
Microsoft EdgeSupported
Yes
Mozilla FirefoxSupported
Yes
Apple SafariSupported
Yes
OperaSupported
Yes
Internet ExplorerAll
Yes
U+005F / _Full support
Bottom line: Prefer typing _ in normal HTML. Use _ when an explicit entity helps, and \\5F only inside CSS content.
Remember
Key Takeaways
Unicode: this symbol is U+005F (decimal 95).
HTML: type _, or use _ / _ / _.
CSS: use \5F inside content for generated text.
Watch out:_ ≠ combining U+0332 ≠ undertie U+203F.
One line:U+005F → type _ / _ / _ / _ / CSS \5F.
Frequently Asked Questions
Use _ (named), _ (hex), _ (decimal), or the CSS escape \5F in the content property. You can also type _ directly in UTF-8 HTML — that is the usual approach.
U+005F (LOW LINE). Hex 5F, decimal 95. It belongs to Basic Latin (U+0000–U+007F).
Yes. _ is the HTML5 named entity (alias _). You can also use _ or _.
Use an entity when you want encoding to be explicit in tutorials or generated markup. In everyday HTML, typing _ is fine for snake_case, IDs, and code samples.
HTML entities (_, _, or _) go in markup. The CSS escape \5F is used in stylesheets (usually in the content property of ::before/::after). Both render _.
The ASCII underscore _ (U+005F) is a spacing character. Combining low line (U+0332) attaches under the previous letter for underlining effects. They are different code points.
🤔
Did you know?
Underscore is Unicode U+005F (decimal 95) — LOW LINE. HTML5 provides _ (alias _). Prefer typing _ directly in UTF-8 HTML. Do not confuse it with the combining low line U+0332 or the undertie U+203F (‿).