Semicolon

Updated: 10/30/2017 by Computer Hope

SemicolonA symbol found on the computer keyboard that looks like a period above a comma ( ; ), which is on the same key as the colon on the standard United States QWERTY keyboard.

Where is the semicolon key on the keyboard?

Below is an overview of a computer keyboard with the semicolon key highlighted in blue.

Semicolon key

How to create the ';' symbol

Creating the ';' symbol on a U.S. keyboard

To create the semicolon symbol using a U.S. keyboard press the semicolon key, which is on the same key as the colon ( : ) and directly to the right of the letter 'L' key.

Creating the ';' symbol on a smartphone or tablet

To create a tilde on a smartphone or tablet open the keyboard and go into the numbers (123) or symbols (sym) section and then press your finger on the ';' symbol.

How is a semicolon used?

The semicolon is used a lot in computer programming to finish an instruction. For example, in the below print statement the trailing semicolon lets the programming interpreter that it is the end of the line.

print "Hello world!";

A semicolon may also be used as a delimiter to separate text. For example, if the Windows path has more than one directory each directory is separated by a semicolon.

Other programming languages like Autohotkey use a semicolon for non executable statements.

Colon, Keyboard terms, Nonexecutable statement