Backslash (\) is Unicode U+005C (reverse solidus) in the Basic Latin (ASCII) block. It appears in Windows-style paths, escape sequences, regex, and code documentation. HTML provides the named entity \.
Remember
Character \
Unicode U+005C
Hex entity \
Decimal \
Named entity \
CSS escape \5C
Not the same / (U+002F solidus)
All of these produce the same glyph: \. Prefer a typed \ in ordinary HTML; use \ / numeric forms when you want an explicit escape; use CSS for generated content.
Use \ (hex), \ (decimal), \ (named), a literal \ in UTF-8, or the CSS escape \5C in the content property. All render a backslash.
U+005C (hex 5C, decimal 92). Unicode names it REVERSE SOLIDUS. It belongs to the Basic Latin (ASCII) block.
Yes. \ maps to U+005C. Prefer it in tutorials; a typed \ is fine in ordinary HTML text.
\ is reverse solidus (U+005C). / is solidus / forward slash (U+002F). They are different characters — paths and URLs usually use / on the web.
HTML entities (\, \, or \) go in markup. The CSS escape \5C is used in stylesheets (usually in the content property of ::before/::after). Both render a backslash.
In CSS, \ starts an escape. To emit a literal backslash via content, use \5C (or an equivalent CSS escape) — do not paste a lone \ without a valid escape form.
🤔
Did you know?
Backslash is Unicode U+005C (decimal 92) in Basic Latin — official name REVERSE SOLIDUS. HTML’s named reference is \. A typed \ is fine in UTF-8 HTML; use entities when you want an explicit escape in docs or generated markup.