"

Quotation Mark

Unicode
U+0022
Category
Punctuation
Symbol Sets
Quotation Marks
HTML Entity
"
CSS
\0022
The quotation mark (") is the straight double quote on every keyboard, a typewriter compromise that serves as both the opening and the closing quote. Typeset text uses curly quotes instead — “ ” in English, « » in French, Spanish and Russian — and Word, Google Docs and phones usually replace " with them as you type. The straight mark also stands in for inches and seconds (5' 11"), where the precise characters are the primes ′ and ″.

On a US keyboard " is Shift + the apostrophe key, right of the semicolon; on a UK PC keyboard it is Shift+2 (a British Mac keeps it on Shift+'). On the US-International layout it is a dead key: press it, then Space. On an iPhone it is on the 123 page (switch off Smart Punctuation to keep it straight), on Android on the ?123 page.

How to Type

Windows
Shift+' (US) · Shift+2 (UK) · Alt+34
macOS
Shift+'
Linux
Shift+' · Ctrl+Shift+U 22
HTML
"

In Programming

Double quotes delimit strings in C, Java, C# and JSON, which accepts no other quote. In Bash and PHP a double-quoted string expands variables and a single-quoted one does not. HTML attribute values are wrapped in them, so a literal " inside an attribute is written "; inside a string it is escaped as \", and in CSV a quote inside a quoted field is doubled (""). Curly “ ” pasted from a word processor are a syntax error in code.

Tags

quotation mark double quote straight quotes quote symbol straight vs curly quotes alt 34 inch symbol keyboard symbol ascii

Related Symbols