Comma (,) is the Unicode character at U+002C — the standard ASCII comma. It separates items in lists, appears in numbers (locale-dependent), and is used in CSV-style text and many programming languages.
Remember
Character ,
Unicode U+002C
Hex entity ,
Decimal ,
Named entity ,
CSS escape \2C
All of these produce the same glyph: ,. Prefer typing , in everyday HTML; use , when you want the named reference explicit.
One page that shows Comma with the named entity, hex entity, decimal entity, CSS escape, and a typed character. Use View Output or open the live editor.
Named + Hex + Decimal + CSS + Typed
Five ways to produce , in a single document.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Comma (,) in HTML</title>
<style>
#point::after {
content: "\2C";
}
</style>
</head>
<body>
<p>Comma using Named Entity: ,</p>
<p>Comma using Hex Code: ,</p>
<p>Comma using HTML Code: ,</p>
<p id="point">Comma using CSS Entity: </p>
<p>Typed directly: ,</p>
</body>
</html>
One line:U+002C → type , / , / , / CSS \2C.
Frequently Asked Questions
Type , directly in UTF-8 HTML, or use , (hex), , (decimal), , (named), or the CSS escape \2C in the content property. All render ,.
U+002C (hex 2C, decimal 44). It is the standard ASCII comma character.
Yes. , is the HTML5 named reference for ,. Numeric forms , and , also work.
Use it in lists, decimal-style numbers (locale-dependent), CSV-style text, and code. Prefer typing , in normal HTML; use , when you want the named form explicit.
HTML entities (,, ,, or ,) go in markup. The CSS escape \2C goes in stylesheet strings (usually content on ::before/::after).
, (U+002C / ,) is the ASCII comma. ; (U+003B) is the semicolon. U+0313 is combining comma above — a diacritic that attaches to a base letter, not a spacing comma.
🤔
Did you know?
Comma is Unicode U+002C (decimal 44) — the familiar ASCII ,. HTML named reference is ,. It is not combining comma above (U+0313) and not semicolon ; (U+003B).