Updated: 06/30/2020 by Computer Hope
Sometimes referred to as an apostrophe, a single quote is a punctuation symbol found on the United States QWERTY keyboard next to the Enter key.
Where is the single quote key on the keyboard?
Below is an overview of a computer keyboard with the single quote key highlighted in blue.
How to create the single quote symbol
Creating the single quote symbol on a U.S. keyboard
To create the quote symbol using a U.S. keyboard, press the single quote key, which is on the same key as the quote ( " ) and typically to the left of the Enter key.
Creating the single quote symbol on a smartphone or tablet
To create a quote symbol on a smartphone or tablet, open the keyboard and go into the numbers (123) or symbols (sym) section, then press your finger on the " symbol.
What is a single quote used for on a computer?
In most computer programming, single quotes are commonly used to contain commands or literal strings.
my $example = "Example of variable";
print 'Do not print $example';
In the example above, the variable $example would not be treated as a variable. Instead, it would print "Do not print $example". If you used quotes instead of a single quote, it would print "Do not print Example of variable".
In other programming languages, like QBasic and Visual Basic, the single quote is treated as a nonexecutable statement.
What is the other symbol on the single quote key?
On U.S. keyboards, the single quote key is shared with the quote key, which may be shown next to or above the single quote symbol.
Back quote, Keyboard terms, Quote