Updated: 05/16/2020 by Computer Hope
Where is the semicolon key on the keyboard?
Below is an overview of a computer keyboard with the semicolon key highlighted in blue.
How to create the ';' symbol
Creating the ';' symbol on a U.S. keyboard
Creating the ';' symbol on a smartphone or tablet
How is a semicolon used?
Below are some different examples of where a semicolon is used today.
- The semicolon is used in many 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.
- The semicolon may be used with a right parenthesis in text or online messages to denote a winking face ;). It is also known as an emoticon.