Quotation mark (") is the Basic Latin (ASCII) character at Unicode U+0022 (QUOTATION MARK). It is the straight double quote used in code, plain text, and HTML attribute escaping. The preferred named form is ".
Remember
Character "
Unicode U+0022
Named entity "
Hex entity "
Decimal "
CSS escape \0022
Named, numeric, and UTF-8 forms produce the same glyph: ". Prefer " when escaping quotes inside attributes; type " in body text when convenient. Curly quotes (“ / ”) are different characters.
Using Named Entity: "
Using Hex Code: "
Using Decimal: "
Using Direct Character: "
Using CSS Entity: "
She said "Hello."
How It Works
1. Named:" is the preferred HTML5 entity for U+0022 — especially useful inside attributes.
2. Hex:U+0022 → " in HTML. Same glyph as the named form.
3. Decimal: same code point as 34 → ".
4. Direct: type " in a UTF-8 body text node. Inside double-quoted attributes, escape with ".
5. CSS: use padded \0022 in content so a following digit is not absorbed into the escape.
Pitfalls & Tips
Common mistakes when working with this punctuation entity.
Attributes
Escape quotes in attributes
Inside attr="…", a literal " ends the value. Use " or switch to single-quoted attributes.
Curly
Straight ≠ curly
" is ASCII ". Typographic quotes are “ / ”. Do not mix them in code or URLs.
Code
Keep straight quotes in code
Smart-quote substitution can break JavaScript, JSON, and HTML attributes. Prefer U+0022 in source code.
CSS pad
Prefer \0022
Short escapes like \22 can swallow the next hex digit. Pad to four digits: \0022.
CSS vs HTML
Do not mix escapes
\0022 belongs in CSS. " / " belong in HTML.
UTF-8
Declare charset
If you paste quotes directly, serve the page as UTF-8 with <meta charset="UTF-8">.
Compatibility
Browser Support
Quotation mark (U+0022) and its entity forms (", ", ", CSS \\0022) are supported in all mainstream browsers — it is core ASCII.
✓ Universal support
Quotation Mark (")
Prefer " when escaping, or type " / 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+0022 / "Full support
Bottom line: Prefer " for attribute escaping. Type " in body text when safe. Use \\0022 only inside CSS content.
Remember
Key Takeaways
Unicode: quotation mark is U+0022 (decimal 34), Basic Latin / ASCII.
HTML: prefer " for escaping — or " / ".
CSS: use padded \0022 inside content.
Meaning: straight ASCII quote — not curly “ / ”.
One line:U+0022 → " / " / CSS \0022.
Frequently Asked Questions
Prefer " (named). You can also use " (hex), " (decimal), type " in UTF-8 text, or the CSS escape \0022 in content.
U+0022 (QUOTATION MARK). Hex 22, decimal 34. It belongs to Basic Latin (ASCII) and is the straight double quote.
Use " inside double-quoted HTML attribute values, in generated markup, and anywhere explicit encoding prevents parser errors. In normal body text you can usually type " directly.
" is U+0022 (straight ASCII quote). Curly / smart quotes are different characters — for example “ (U+201C) and ” (U+201D).
HTML entities (", ", or ") go in markup. The CSS escape \0022 is used in stylesheets (usually in the content property of ::before/::after). Prefer the padded form \0022 so the next digit is not swallowed.
If the attribute is delimited with double quotes, escape the inner quote with " (e.g. title="She said "Hi""). Or delimit the attribute with single quotes and keep a literal " inside.
🤔
Did you know?
Quotation mark (") is Unicode U+0022 (decimal 34) — QUOTATION MARK in Basic Latin (ASCII). HTML5 named entity: ". Prefer " when escaping quotes inside attribute values. It is the straight double quote — not curly “ / ”.