Quote1. Alternatively referred to as a double quote, quotation mark, or inverted commas, a quote is a symbol ( " ) on a keyboard. It is located next to the Enter key on a US QWERTY keyboard.

Quote in computer programming

In computer programming, quotes are used to contain text or other data. For example, in the below print statement, what you're printing to the screen is often surrounded by quotes.

print "Hello world!";

Quote at the command line

In a command line to recognize files or directories with spaces, they must be surrounded by quotes. For example, if you wanted to rename the file "stats baseball.doc" to "stats_baseball.doc" at the Windows command line, you could use the command below.

move "stats baseball.doc" stats_baseball.doc

Quote in HTML

With HTML, quotes are an important part of the markup language, which means in order write a quote that is not part of an HTML tag you need to use the &quote; special character. In the example below the HTML page would show "example" with the quotes.


Quotes in scripting language

Quotes are also an important part of what makes other scripting and programming languages. To print the quotation mark symbols as output, you need to escape the quote. For example, below is similar to our first example, but is surrounding the printed message with quotes.

print "\"Hello world!\"";

Related pages

2. When writing in HTML, the <blockquote> tag is used to denote that a section of an article has been quoted from another source.

3. A famous or popular saying by someone. A listing of some of Computer Hope's favorite quotes can be found on our quotes page.

Also see: Angled quote, Back quote, Curly quotes, Keyboard terms, Magic quote, Single quote