Colon (punctuation)
   HOME

TheInfoList



OR:

The colon is a
punctuation Punctuation (or sometimes interpunction) is the use of spacing, conventional signs (called punctuation marks), and certain typographical devices as aids to the understanding and correct reading of written text, whether read silently or aloud. An ...
mark consisting of two equally sized dots aligned vertically. A colon often precedes an explanation, a list, or a quoted sentence. It is also used between hours and minutes in time, between certain elements in
medical journal A medical journal is a peer-reviewed scientific journal that communicates medical information to physicians, other health professionals. Journals that cover many medical specialties are sometimes called general medical journals. History The first ...
citations, chapter and verse in
Bible citation A citation from the Bible is usually referenced with the book name, chapter number and verse number. Sometimes, the name of the Bible translation is also included. There are several formats for doing so. Common formats A common format for bibl ...
s, and, in the US, for
salutation A salutation is a greeting used in a letter or other communication. Salutations can be formal or informal. The most common form of salutation in an English letter is wed by the recipient's given name or title. For each style of salutation there i ...
s in
business letter A business letter is a letter from one company to another, or such organizations and their customers, clients, or other external parties. The overall style of letter depends on the relationship between the parties concerned. Business letters can ...
s and other formal letter writing.


History

In
Ancient Greek Ancient Greek includes the forms of the Greek language used in ancient Greece and the ancient world from around 1500 BC to 300 BC. It is often roughly divided into the following periods: Mycenaean Greek (), Dark Ages (), the Archaic peri ...
, in
rhetoric Rhetoric () is the art of persuasion, which along with grammar and logic (or dialectic), is one of the three ancient arts of discourse. Rhetoric aims to study the techniques writers or speakers utilize to inform, persuade, or motivate parti ...
and prosody, the term (', 'limb, member of a body') did not refer to punctuation, but to a member or section of a complete thought or passage; see also ''
Colon (rhetoric) A colon (from Greek: , ''pl.'' , ''cola''.) is a rhetorical figure consisting of a clause which is grammatically, but not logically, complete. In Latin, it is called a ''membrum'' or ''membrum orationis''. Sentences consisting of two cola are call ...
''. From this usage, in
palaeography Palaeography (American and British English spelling differences#ae and oe, UK) or paleography (American and British English spelling differences#ae and oe, US; ultimately from grc-gre, , ''palaiós'', "old", and , ''gráphein'', "to write") ...
, a colon is a clause or group of clauses written as a line in a
manuscript A manuscript (abbreviated MS for singular and MSS for plural) was, traditionally, any document written by hand – or, once practical typewriters became available, typewritten – as opposed to mechanically printing, printed or repr ...
.''Oxford English Dictionary'', 1st ed. "colon, ''n.²''" Oxford University Press (Oxford), 1891. In the 3rd century BC,
Aristophanes of Byzantium __NOTOC__ Aristophanes of Byzantium ( grc-gre, Ἀριστοφάνης ὁ Βυζάντιος ; BC) was a Hellenistic Greek scholar, critic and grammarian, particularly renowned for his work in Homeric scholarship, but also for work on other ...
is alleged to have devised a punctuation system, in which the end of such a was thought to occasion a medium-length breath, and was marked by a
middot An interpunct , also known as an interpoint, middle dot, middot and centered dot or centred dot, is a punctuation mark consisting of a vertically centered dot used for interword separation in ancient Latin script. (Word-separating spaces did n ...
. In practice, we don't have much evidence for its early usage, but it was revived later as the '' ano teleia'', the
modern Greek Modern Greek (, , or , ''Kiní Neoellinikí Glóssa''), generally referred to by speakers simply as Greek (, ), refers collectively to the dialects of the Greek language spoken in the modern era, including the official standardized form of the ...
semicolon The semicolon or semi-colon is a symbol commonly used as orthographic punctuation. In the English language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought. When a ...
.Nicolas, Nick.
Greek Unicode Issues: Punctuation
". 2005. Accessed 7 October 2014.
Some writers also used a double dot symbol , that later came to be used as a
full stop The full stop (Commonwealth English), period (North American English), or full point , is a punctuation mark. It is used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation ...
or to mark a change of speaker. (See also '' Punctuation in Ancient Greek''.) In 1589, in ''The Arte of English Poesie'', the
English English usually refers to: * English language * English people English may also refer to: Peoples, culture, and language * ''English'', an adjective for something of, from, or related to England ** English national ide ...
term ''colon'' and the corresponding punctuation mark is attested:
For these respectes the auncient reformers of language, inuented, three maner of pauses ..The shortest pause or intermission they called ''comma'' ..The second they called ''colon'', not a peece but as it were a member for his larger length, because it occupied twise as much time as the comma. The third they called ''periodus'', ..
In 1622, in Nicholas Okes' print of
William Shakespeare William Shakespeare ( 26 April 1564 – 23 April 1616) was an English playwright, poet and actor. He is widely regarded as the greatest writer in the English language and the world's pre-eminent dramatist. He is often called England's nation ...
's ''
Othello ''Othello'' (full title: ''The Tragedy of Othello, the Moor of Venice'') is a tragedy written by William Shakespeare, probably in 1603, set in the contemporary Ottoman–Venetian War (1570–1573) fought for the control of the Island of Cypru ...
'', the typographical construction of a colon followed by a
hyphen The hyphen is a punctuation mark used to join words and to separate syllables of a single word. The use of hyphens is called hyphenation. ''Son-in-law'' is an example of a hyphenated word. The hyphen is sometimes confused with dashes (figure d ...
or
dash The dash is a punctuation mark consisting of a long horizontal line. It is similar in appearance to the hyphen but is longer and sometimes higher from the baseline. The most common versions are the endash , generally longer than the hyphen b ...
to indicate a restful pause is attested. This construction, known as the ''
dog's bollocks Dog's balls or dog's bollocks may refer to: * The testicles of a dog * '' Grewia retusifolia'', a shrub species in the family Malvaceae * Dog's bollocks, a slang expression in British English * Dog's bollocks (typography) The compound point is ...
'', was once common in
British English British English (BrE, en-GB, or BE) is, according to Lexico, Oxford Dictionaries, "English language, English as used in Great Britain, as distinct from that used elsewhere". More narrowly, it can refer specifically to the English language in ...
; though this usage is now discouraged. As late as the 18th century, John Mason related the appropriateness of a colon to the length of the pause taken when reading the text aloud, but silent reading eventually replaced this with other considerations.


Usage in English

In modern English usage, a complete sentence precedes a colon, while a list, description, explanation, or definition follows it. The elements which follow the colon may or may not be a complete sentence: since the colon is preceded by a sentence, it is a complete sentence whether what follows the colon is another sentence or not. While it is acceptable to capitalise the first letter after the colon in American English, it is not the case in British English, except where a proper noun immediately follows a colon. ;Colon used before list :''Daequan was so hungry that he ate everything in the house: chips, cold pizza, pretzels and dip, hot dogs, peanut butter, and candy.'' ;Colon used before a description :''Bertha is so desperate that she'll date anyone, even William: he's uglier than a squashed toad on the highway, and that's on his good days.'' ;Colon before definition :''For years while I was reading Shakespeare's ''Othello'' and criticism on it, I had to constantly look up the word "egregious" since the villain uses that word: outstandingly bad or shocking.'' ;Colon before explanation :''I guess I can say I had a rough weekend: I had chest pain and spent all Saturday and Sunday in the emergency room.'' Some writers use fragments (incomplete sentences) before a colon for emphasis or stylistic preferences (to show a character's voice in literature), as in this example: :''Dinner: chips and juice. What a well-rounded diet I have.''
The Bedford Handbook ''The Bedford Handbook'' is a guide written by Diana Hacker, now in its eleventh edition, that provides basic explanations of proper English grammar, composition, citation, and textual analysis. The guide includes a number of sample texts (includi ...
describes several uses of a colon. For example, one can use a colon after an independent clause to direct attention to a list, an
appositive Apposition is a grammatical construction in which two elements, normally noun phrases, are placed side by side so one element identifies the other in a different way. The two elements are said to be ''in apposition'', and one of the elements is c ...
or a quotation, and it can be used between independent clauses if the second summarizes or explains the first. In non-literary or non-expository uses, one may use a colon after the salutation in a formal letter, to indicate hours and minutes, to show proportions, between a title and subtitle, and between city and publisher in bibliographic entries. Luca Serianni, an Italian scholar who helped to define and develop the colon as a punctuation mark, identified four punctuational modes for it: ''syntactical-deductive'', ''syntactical-descriptive'', ''appositive'', and ''segmental''.


Syntactical-deductive

The colon introduces the
logical consequence Logical consequence (also entailment) is a fundamental concept in logic, which describes the relationship between statements that hold true when one statement logically ''follows from'' one or more statements. A valid logical argument is on ...
, or effect, of a fact stated before. :''There was only one possible explanation: the train had never arrived.''


Syntactical-descriptive

In this sense the colon introduces a description; in particular, it makes explicit the elements of a set. :''I have three sisters: Daphne, Rose, and Suzanne.'' Syntactical-descriptive colons may separate the numbers indicating
hour An hour (symbol: h; also abbreviated hr) is a unit of time conventionally reckoned as of a day and scientifically reckoned between 3,599 and 3,601 seconds, depending on the speed of Earth's rotation. There are 60 minutes in an hour, and 24 ho ...
s,
minute The minute is a unit of time usually equal to (the first sexagesimal fraction) of an hour, or 60 seconds. In the UTC time standard, a minute on rare occasions has 61 seconds, a consequence of leap seconds (there is a provision to insert a nega ...
s, and
second The second (symbol: s) is the unit of time in the International System of Units (SI), historically defined as of a day – this factor derived from the division of the day first into 24 hours, then to 60 minutes and finally to 60 seconds ...
s in abbreviated measures of time. :''The concert begins at 21:45.'' :''The rocket launched at 09:15:05.''
British English British English (BrE, en-GB, or BE) is, according to Lexico, Oxford Dictionaries, "English language, English as used in Great Britain, as distinct from that used elsewhere". More narrowly, it can refer specifically to the English language in ...
, however, more frequently uses a
point Point or points may refer to: Places * Point, Lewis, a peninsula in the Outer Hebrides, Scotland * Point, Texas, a city in Rains County, Texas, United States * Point, the NE tip and a ferry terminal of Lismore, Inner Hebrides, Scotland * Point ...
for this purpose: :''The programme will begin at 8.00 pm.'' :''You will need to arrive by 14.30.'' A colon is also used in the descriptive location of a book verse if the book is divided into verses, such as in the
Bible The Bible (from Koine Greek , , 'the books') is a collection of religious texts or scriptures that are held to be sacred in Christianity, Judaism, Samaritanism, and many other religions. The Bible is an anthologya compilation of texts of a ...
or the
Quran The Quran (, ; Standard Arabic: , Classical Arabic, Quranic Arabic: , , 'the recitation'), also romanized Qur'an or Koran, is the central religious text of Islam, believed by Muslims to be a revelation in Islam, revelation from God in Islam, ...
: :"Isaiah 42:8" :"Deuteronomy 32:39" :"Quran 10:5"


Appositive

:''Luruns could not speak: he was drunk.'' An appositive colon also separates the subtitle of a work from its principal title. (In effect, the example given above illustrates an appositive use of the colon as an abbreviation for the conjunction 'because'.) Dillon has noted the impact of colons on scholarly articles, but the reliability of colons as a predictor of quality or impact has also been challenged. In titles, neither needs to be a complete sentence as titles do not represent
expository Narrative exposition is the insertion of background information within a story or narrative. This information can be about the setting, characters' backstories, prior plot events, historical context, etc. In literature, exposition appears in t ...
writing: :''Star Wars Episode VI: Return of the Jedi''


Segmental

Like a
dash The dash is a punctuation mark consisting of a long horizontal line. It is similar in appearance to the hyphen but is longer and sometimes higher from the baseline. The most common versions are the endash , generally longer than the hyphen b ...
or quotation mark, a segmental colon introduces
speech Speech is a human vocal communication using language. Each language uses Phonetics, phonetic combinations of vowel and consonant sounds that form the sound of its words (that is, all English words sound different from all French words, even if ...
. The segmental function was once a common means of indicating an unmarked quotation on the same line. The following example is from the grammar book ''
The King's English ''The King's English'' is a book on English usage and grammar. It was written by the brothers Henry Watson Fowler and Francis George Fowler and published in 1906; it thus predates by twenty years '' Modern English Usage'', which was written by ...
'': :''Benjamin Franklin proclaimed the virtue of frugality: A penny saved is a penny earned.'' This form is still used in written
dialogue Dialogue (sometimes spelled dialog in American English) is a written or spoken conversational exchange between two or more people, and a literary and theatrical form that depicts such an exchange. As a philosophical or didactic device, it is c ...
s, such as in a
play Play most commonly refers to: * Play (activity), an activity done for enjoyment * Play (theatre), a work of drama Play may refer also to: Computers and technology * Google Play, a digital content service * Play Framework, a Java framework * Pla ...
. The colon indicates that the words following an individual's name are spoken by that individual. :''Patient: Doctor, I feel like a pair of curtains.'' :''Doctor: Pull yourself together!''


Use of capitals

Use of capitalization or lower-case after a colon varies. In
British English British English (BrE, en-GB, or BE) is, according to Lexico, Oxford Dictionaries, "English language, English as used in Great Britain, as distinct from that used elsewhere". More narrowly, it can refer specifically to the English language in ...
, and in most Commonwealth countries, the word following the colon is in lower case unless it is normally capitalized for some other reason, as with
proper noun A proper noun is a noun that identifies a single entity and is used to refer to that entity (''Africa'', ''Jupiter'', ''Sarah'', ''Microsoft)'' as distinguished from a common noun, which is a noun that refers to a class of entities (''continent, ...
s and
acronym An acronym is a word or name formed from the initial components of a longer name or phrase. Acronyms are usually formed from the initial letters of words, as in ''NATO'' (''North Atlantic Treaty Organization''), but sometimes use syllables, as ...
s. British English also capitalizes a new sentence introduced by colon's segmental use.
American English American English, sometimes called United States English or U.S. English, is the set of variety (linguistics), varieties of the English language native to the United States. English is the Languages of the United States, most widely spoken lan ...
goes further and permits writers to similarly capitalize the first word of any
independent clause An independent clause (or main clause) is a clause that can stand by itself as a ''simple sentence''. An independent clause contains a subject and a predicate and makes sense by itself. Independent clauses can be joined by using a semicolon or ...
following a colon. This follows the guidelines of some modern American style guides, including those published by the
Associated Press The Associated Press (AP) is an American non-profit news agency headquartered in New York City. Founded in 1846, it operates as a cooperative, unincorporated association. It produces news reports that are distributed to its members, U.S. newspa ...
and the
Modern Language Association The Modern Language Association of America, often referred to as the Modern Language Association (MLA), is widely considered the principal professional association in the United States for scholars of language and literature. The MLA aims to "st ...
. ''
The Chicago Manual of Style ''The Chicago Manual of Style'' (abbreviated in writing as ''CMOS'' or ''CMS'', or sometimes as ''Chicago'') is a style guide for American English published since 1906 by the University of Chicago Press. Its 17 editions have prescribed writi ...
'', however, requires capitalization only when the colon introduces a direct quotation, a direct question, or two or more complete sentences. In many
Europe Europe is a large peninsula conventionally considered a continent in its own right because of its great physical size and the weight of its history and traditions. Europe is also considered a Continent#Subcontinents, subcontinent of Eurasia ...
an languages, the colon is usually followed by a lower-case letter unless the upper case is required for other reasons, as with British English.
German German(s) may refer to: * Germany (of or related to) ** Germania (historical use) * Germans, citizens of Germany, people of German ancestry, or native speakers of the German language ** For citizens of Germany, see also German nationality law **Ge ...
usage requires capitalization of
independent clause An independent clause (or main clause) is a clause that can stand by itself as a ''simple sentence''. An independent clause contains a subject and a predicate and makes sense by itself. Independent clauses can be joined by using a semicolon or ...
s following a colon.
Dutch Dutch commonly refers to: * Something of, from, or related to the Netherlands * Dutch people () * Dutch language () Dutch may also refer to: Places * Dutch, West Virginia, a community in the United States * Pennsylvania Dutch Country People E ...
further capitalizes the first word of any quotation following a colon, even if it is not a complete sentence on its own.


Spacing

In print, a thin space was traditionally placed before a colon and a thick space after it. In modern English-language printing, no space is placed before a colon and a single space is placed after it. In
French-language French ( or ) is a Romance language of the Indo-European family. It descended from the Vulgar Latin of the Roman Empire, as did all Romance languages. French evolved from Gallo-Romance, the Latin spoken in Gaul, and more specifically in Nor ...
typing and printing, the traditional rules are preserved. One or two spaces may be and have been used after a colon. The older convention (designed to be used by
monospaced font A monospaced font, also called a fixed-pitch, fixed-width, or non-proportional font, is a font whose letters and characters each occupy the same amount of horizontal space. This contrasts with variable-width fonts, where the letters and spac ...
s) was to use ''two'' spaces after a colon.


Usage in other languages


Suffix separator

In
Finnish Finnish may refer to: * Something or someone from, or related to Finland * Culture of Finland * Finnish people or Finns, the primary ethnic group in Finland * Finnish language, the national language of the Finnish people * Finnish cuisine See also ...
and
Swedish Swedish or ' may refer to: Anything from or related to Sweden, a country in Northern Europe. Or, specifically: * Swedish language, a North Germanic language spoken primarily in Sweden and Finland ** Swedish alphabet, the official alphabet used by ...
, the colon can appear inside words in a manner similar to the
apostrophe The apostrophe ( or ) is a punctuation mark, and sometimes a diacritical mark, in languages that use the Latin alphabet and some other alphabets. In English, the apostrophe is used for two basic purposes: * The marking of the omission of one o ...
in the English
possessive case A possessive or ktetic form (abbreviated or ; from la, possessivus; grc, κτητικός, translit=ktētikós) is a word or grammatical construction used to indicate a relationship of possession in a broad sense. This can include strict owne ...
, connecting a grammatical
suffix In linguistics, a suffix is an affix which is placed after the stem of a word. Common examples are case endings, which indicate the grammatical case of nouns, adjectives, and verb endings, which form the conjugation of verbs. Suffixes can carry ...
to an
abbreviation An abbreviation (from Latin ''brevis'', meaning ''short'') is a shortened form of a word or phrase, by any method. It may consist of a group of letters or words taken from the full version of the word or phrase; for example, the word ''abbrevia ...
or
initialism An acronym is a word or name formed from the initial components of a longer name or phrase. Acronyms are usually formed from the initial letters of words, as in ''NATO'' (''North Atlantic Treaty Organization''), but sometimes use syllables, as ...
, a special symbol, or a digit (e.g., Finnish ''USA:n'' and Swedish ''USA:s'' for the
genitive case In grammar, the genitive case (abbreviated ) is the grammatical case that marks a word, usually a noun, as modifying another word, also usually a noun—thus indicating an attributive relationship of one noun to the other noun. A genitive can al ...
of "USA", Finnish ''%:ssa'' for the
inessive case In grammar, the inessive case ( abbreviated ; from la, inesse "to be in or at") is a locative grammatical case. This case carries the basic meaning of "in": for example, "in the house" is in Finnish, in Estonian, () in Moksha, in Basque, i ...
of "%", or Finnish ''20:een'' for the
illative case In grammar, the illative case (; abbreviated ; from la, illatus "brought in") is a grammatical case used in the Finnish, Estonian, Lithuanian, Latvian and Hungarian languages. It is one of the locative cases, and has the basic meaning of "int ...
of "20").


Abbreviation mark

Written Swedish uses colons in contractions, such as ''S:t'' for ''Sankt'' (Swedish for "Saint") – for example in the name of the
Stockholm metro The Stockholm metro ( sv, Stockholms tunnelbana) is a rapid transit system in Stockholm, Sweden. The first line opened in 1950, and today the system has 100 stations in use, of which 47 are underground and 53 above ground. There are three colou ...
station '' S:t Eriksplan'', and ''k:a'' for ''kyrka'' ("church") – for instance Svenska k:a (Svenska kyrkan), the Evangelical Lutheran national Church of Sweden. This can even occur in people's names, for example Antonia Ax:son Johnson ('' Ax:son'' for ''Axelson'').
Early Modern English Early Modern English or Early New English (sometimes abbreviated EModE, EMnE, or ENE) is the stage of the English language from the beginning of the Tudor period to the English Interregnum and Restoration, or from the transition from Middle E ...
texts also used colons to mark abbreviations.


Word separator

In
Ethiopia Ethiopia, , om, Itiyoophiyaa, so, Itoobiya, ti, ኢትዮጵያ, Ítiyop'iya, aa, Itiyoppiya officially the Federal Democratic Republic of Ethiopia, is a landlocked country in the Horn of Africa. It shares borders with Eritrea to the ...
, both
Amharic Amharic ( or ; (Amharic: ), ', ) is an Ethiopian Semitic language, which is a subgrouping within the Semitic branch of the Afroasiatic languages. It is spoken as a first language by the Amharas, and also serves as a lingua franca for all oth ...
and Ge'ez script used and sometimes still use a colon-like mark as
word separator In punctuation, a word divider is a glyph that separates written words. In languages which use the Latin, Cyrillic, and Arabic alphabets, as well as other scripts of Europe and West Asia, the word divider is a blank space, or ''whitespace''. ...
.


End of sentence or verse

In
Armenian Armenian may refer to: * Something of, from, or related to Armenia, a country in the South Caucasus region of Eurasia * Armenians, the national people of Armenia, or people of Armenian descent ** Armenian Diaspora, Armenian communities across the ...
, a colon indicates the end of a sentence, similar to a Latin
full stop The full stop (Commonwealth English), period (North American English), or full point , is a punctuation mark. It is used for several purposes, most often to mark the end of a declarative sentence (as distinguished from a question or exclamation ...
or period. In
Hebrew Hebrew (; ; ) is a Northwest Semitic language of the Afroasiatic language family. Historically, it is one of the spoken languages of the Israelites and their longest-surviving descendants, the Jews and Samaritans. It was largely preserved ...
, the sof pasuq is used in some writings such as prayer books to signal the end of a verse.


Score divider

In
German German(s) may refer to: * Germany (of or related to) ** Germania (historical use) * Germans, citizens of Germany, people of German ancestry, or native speakers of the German language ** For citizens of Germany, see also German nationality law **Ge ...
, a colon divides the scores of opponents in sports and games. A result of 149–0 would be written as 149 : 0 in German.


Mathematics and logic

The colon is used in
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
,
cartography Cartography (; from grc, χάρτης , "papyrus, sheet of paper, map"; and , "write") is the study and practice of making and using maps. Combining science, aesthetics and technique, cartography builds on the premise that reality (or an im ...
,
model building Model building is a hobby and career that involves the creation of physical models either from kits or from materials and components acquired by the builder. The kits contain several pieces that need to be assembled in order to make a final mod ...
, and other fields—in this context it denotes a
ratio In mathematics, a ratio shows how many times one number contains another. For example, if there are eight oranges and six lemons in a bowl of fruit, then the ratio of oranges to lemons is eight to six (that is, 8:6, which is equivalent to the ...
or a scale, as in 3∶1 (pronounced "three to one"). When a ratio is reduced to a simpler form, such as 10∶15 to 2∶3, this may be expressed with a double colon as 10∶15∶∶2∶3; this would be read "10 is to 15 as 2 is to 3". This form is also used in tests of logic where the question of "Dog is to Puppy as Cat is to _____?" can be expressed as "Dog∶Puppy∶∶Cat∶_____". For these usages the proper
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology Technical standard, standard for the consistent character encoding, encoding, representation, and handling of Character (computing), text expre ...
symbol is that is a little higher up than the normal colon. Compare 2∶3 (ratio colon) with 2:3 (normal colon). In some languages (e.g. German, Russian and French), the colon is the commonly used sign for division (instead of ÷). The notation , : , may also denote the
index of a subgroup In mathematics, specifically group theory, the index of a subgroup ''H'' in a group ''G'' is the number of left cosets of ''H'' in ''G'', or equivalently, the number of right cosets of ''H'' in ''G''. The index is denoted , G:H, or :H/math> or (G ...
. The notation indicates that is a
function Function or functionality may refer to: Computing * Function key, a type of key on computer keyboards * Function model, a structured representation of processes in a system * Function object or functor or functionoid, a concept of object-oriente ...
with domain and codomain . The combination with an equal sign () is used for
definition A definition is a statement of the meaning of a term (a word, phrase, or other set of symbols). Definitions can be classified into two large categories: intensional definitions (which try to give the sense of a term), and extensional definitio ...
s. In
mathematical logic Mathematical logic is the study of logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory. Research in mathematical logic commonly addresses the mathematical properties of for ...
, when using set-builder notation for describing the characterizing property of a
set Set, The Set, SET or SETS may refer to: Science, technology, and mathematics Mathematics *Set (mathematics), a collection of elements *Category of sets, the category whose objects and morphisms are sets and total functions, respectively Electro ...
, it is used as an alternative to a
vertical bar The vertical bar, , is a glyph with various uses in mathematics, computing, and typography. It has many names, often related to particular meanings: Sheffer stroke (in logic), pipe, bar, or (literally the word "or"), vbar, and others. Usage ...
(which is the
ISO 31-11 ISO 31-11:1992 was the part of international standard ISO 31 that defines ''mathematical signs and symbols for use in physical sciences and technology''. It was superseded in 2009 by ISO 80000-2:2009 and subsequently revised in 2019 as ISO-800 ...
standard), to mean "such that". Example: :S = \ (''S'' is the set of all in \mathbb (the
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every real ...
s) such that is strictly greater than 1 and strictly smaller than 3) In older literature on mathematical logic, it is used to indicate how expressions should be bracketed (see Glossary of ''Principia Mathematica''). In
type theory In mathematics, logic, and computer science, a type theory is the formal presentation of a specific type system, and in general type theory is the academic study of type systems. Some type theories serve as alternatives to set theory as a foundat ...
and
programming language A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language. The description of a programming ...
theory, the colon sign after a term is used to indicate its type, sometimes as a replacement to the "∈" symbol. Example: :\lambda x . x \mathrel A \to A . A colon is also sometimes used to indicate a
tensor contraction In multilinear algebra, a tensor contraction is an operation on a tensor that arises from the natural pairing of a finite-dimensional vector space and its dual. In components, it is expressed as a sum of products of scalar components of the tens ...
involving two indices, and a double colon (::) for a contraction over four indices. A colon is also used to denote a
parallel sum The parallel operator (also known as reduced sum, parallel sum or parallel addition) \, (pronounced "parallel", following the parallel lines notation from geometry) is a mathematical function which is used as a shorthand in electrical e ...
operation involving two operands (many authors, however, instead use a sign and a few even a for this purpose).


Computing

The character was on early typewriters and therefore appeared in most text encodings, such as
Baudot code The Baudot code is an early character encoding for telegraphy invented by Émile Baudot in the 1870s. It was the predecessor to the International Telegraph Alphabet No. 2 (ITA2), the most common teleprinter code in use until the advent of ASCII ...
and
EBCDIC Extended Binary Coded Decimal Interchange Code (EBCDIC; ) is an eight-bit character encoding used mainly on IBM mainframe and IBM midrange computer operating systems. It descended from the code used with punched cards and the corresponding six- ...
. It was placed at code 58 in
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because of ...
and from there inherited into Unicode. Unicode also defines several related characters. * *, used in
IPA IPA commonly refers to: * India pale ale, a style of beer * International Phonetic Alphabet, a system of phonetic notation * Isopropyl alcohol, a chemical compound IPA may also refer to: Organizations International * Insolvency Practitioners ...
. *, IPA modifier-letter. *, used in IPA. *, IPA modifier-letter. *, used by
Uralic Phonetic Alphabet The Uralic Phonetic Alphabet (UPA) or Finno-Ugric transcription system is a phonetic transcription or notational system used predominantly for the transcription and reconstruction of Uralic languages. It was first published in 1901 by Eemil Nesto ...
. *, compatible with right-to-left text. *, for mathematical usage. *, for use in pretty-printing programming languages. * * * * * *, see
colon (letter) The colon alphabetic letter is used in a number of languages and phonetic transcription systems, generally for vowel length or tone. It resembles but differs from the colon punctuation mark, . In some fonts, the two dots are placed a bit closer ...
, sometimes used in
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
filename A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths. A filename may (depending on the file system) include: * name &ndas ...
s as it is identical to the colon in the
Segoe UI Segoe ( ) is a typeface, or family of fonts, that is best known for its use by Microsoft. The company uses Segoe in its online and printed marketing materials, including recent logos for a number of products. Additionally, the Segoe UI font su ...
font used for filenames. The colon itself is not permitted as it is a
reserved character A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths. A filename may (depending on the file system) include: * name &ndas ...
. *, compatibility character for the Chinese Standard
GB 18030 GB 18030 is a Chinese government standard, described as ''Information Technology — Chinese coded character set'' and defines the required language and character support necessary for software in China. GB18030 is the registered Internet n ...
. *, for compatibility with half/full width fonts. *, compatibility character for the Chinese National Standard
CNS 11643 The CNS 11643 character set (Chinese National Standard 11643), also officially known as the Chinese Standard Interchange Code or CSIC ( zh, tr=, t=中文標準交換碼), is officially the standard character set of Taiwan (Republic of China). In p ...
.


Programming languages

A number of programming languages, most notably Pascal and
Ada Ada may refer to: Places Africa * Ada Foah, a town in Ghana * Ada (Ghana parliament constituency) * Ada, Osun, a town in Nigeria Asia * Ada, Urmia, a village in West Azerbaijan Province, Iran * Ada, Karaman, a village in Karaman Province, ...
, use a colon immediately followed by an equals sign (:=) as the
assignment operator Assignment, assign or The Assignment may refer to: * Homework * Sex assignment * The process of sending National Basketball Association players to its development league; see Computing * Assignment (computer science), a type of modification t ...
, to distinguish it from a single equals which is an equality test (C instead used a single equals as assignment, and a double equals as the equality test). Many languages including C and
Java Java (; id, Jawa, ; jv, ꦗꦮ; su, ) is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea to the north. With a population of 151.6 million people, Java is the world's List ...
use the colon to indicate the text before it is a
label A label (as distinct from signage) is a piece of paper, plastic film, cloth, metal, or other material affixed to a container or product, on which is written or printed information or symbols about the product or item. Information printed dir ...
, such as a target for a
goto GoTo (goto, GOTO, GO TO or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function ca ...
or an introduction to a case in a switch statement. In a related use,
Python Python may refer to: Snakes * Pythonidae, a family of nonvenomous snakes found in Africa, Asia, and Australia ** ''Python'' (genus), a genus of Pythonidae found in Africa and Asia * Python (mythology), a mythical serpent Computing * Python (pro ...
uses a colon to separate a control statement from the block of statements it controls: if test(x): print("test(x) is true!") else: print("test(x) is not true...") In a number of languages, including
JavaScript JavaScript (), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2022, 98% of Website, websites use JavaScript on the Client (computing), client side ...
, colons are used to define
name–value pair A name–value pair, also called an attribute–value pair, key–value pair, or field–value pair, is a fundamental data representation in computing systems and applications. Designers often desire an open-ended data structure that allows for ...
s in a
dictionary A dictionary is a listing of lexemes from the lexicon of one or more specific languages, often arranged alphabetically (or by radical and stroke for ideographic languages), which may include information on definitions, usage, etymologies ...
or
object Object may refer to: General meanings * Object (philosophy), a thing, being, or concept ** Object (abstract), an object which does not exist at any particular time or place ** Physical object, an identifiable collection of matter * Goal, an ...
. This is also used by data formats such as
JSON JSON (JavaScript Object Notation, pronounced ; also ) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays (or other ser ...
. Some other languages use an equals sign. var obj = The colon is used as part of the ?: conditional operator in C and many other languages.
C++ C++ (pronounced "C plus plus") is a high-level general-purpose programming language created by Danish computer scientist Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significan ...
uses a double colon as the
scope resolution operator In computer programming, scope is an enclosing context where values and expressions are associated. The scope resolution operator helps to identify and specify the context to which an identifier refers, particularly by specifying a namespace. Th ...
, and class member access. Most other languages use a period but C++ had to use this for compatibility with C. Another language using colons for scope resolution is Erlang, which uses a single colon. In
BASIC BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages designed for ease of use. The original version was created by John G. Kemeny and Thomas E. Kurtz at Dartmouth College ...
, it is used as a separator between the statements or instructions in a single line. Most other languages use a semicolon, but BASIC had used semicolon to separate items in print statements. In
Forth Forth or FORTH may refer to: Arts and entertainment * ''forth'' magazine, an Internet magazine * ''Forth'' (album), by The Verve, 2008 * ''Forth'', a 2011 album by Proto-Kaw * Radio Forth, a group of independent local radio stations in Scotla ...
, a colon ''precedes'' definition of a new word.
Haskell Haskell () is a general-purpose, statically-typed, purely functional programming language with type inference and lazy evaluation. Designed for teaching, research and industrial applications, Haskell has pioneered a number of programming lan ...
uses a colon (pronounced as "
cons In computer programming, ( or ) is a fundamental function in most dialects of the Lisp programming language. ''constructs'' memory objects which hold two values or pointers to two values. These objects are referred to as (cons) cells, conses, ...
", short for "construct") as an operator to add an element to the front of a
list A ''list'' is any set of items in a row. List or lists may also refer to: People * List (surname) Organizations * List College, an undergraduate division of the Jewish Theological Seminary of America * SC Germania List, German rugby union ...
: "child" : woman", "man"-- equals child","woman","man"/syntaxhighlight> while a double colon :: is read as "has type of" (compare
scope resolution operator In computer programming, scope is an enclosing context where values and expressions are associated. The scope resolution operator helps to identify and specify the context to which an identifier refers, particularly by specifying a namespace. Th ...
): ("text", False) :: (
har Har or HAR may refer to: People * Har Bilas Sarda (1867-1955), Indian academic, judge and politician * Har Sharma (1922–1992), Indian cricket umpire Mythology * Hár and Hárr, among the many names of Odin in Norse mythology * Horus, an Eg ...
Bool)
The ML languages (such as
Standard ML Standard ML (SML) is a general-purpose, modular, functional programming language with compile-time type checking and type inference. It is popular among compiler writers and programming language researchers, as well as in the development of the ...
) have the above reversed, where the double colon (::) is used to add an element to the front of a list; and the single colon (:) is used for type guards.
MATLAB MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation ...
uses the colon as a binary operator that generates vectors, as well as to select particular portions of existing matrices. APL uses the colon * to introduce a control structure element. In this usage it must be the first non-blank character of the line. * after a label name that will be the target of a :goto or a right-pointing arrow (Note: this style of programming is deprecated and programmers are encouraged to use control structures instead). * to separate a guard (boolean expression) from its expression in a dynamic function. Two colons are used for an Error guard (one or more error numbers). * Colon + space are used in class definitions to indicate inheritance. * ⍠ (a colon in a box) is used by APL for its variant operator. The colon is also used in many operating systems commands. In the
esoteric programming language An esoteric programming language (sometimes shortened to esolang) is a programming language designed to test the boundaries of computer programming language design, as a proof of concept, as software art, as a hacking interface to another language ...
INTERCAL The Compiler Language With No Pronounceable Acronym (INTERCAL) is an esoteric programming language that was created as a parody by Don Woods and , two Princeton University students, in 1972. It satirizes aspects of the various programming langu ...
, the colon is called "two-spot" and is used to identify a 32-bit variable—distinct from a spot (.) which identifies a 16-bit variable.


Addresses

Internet URLs use the colon to separate the protocol (such as ) from the
hostname In computer networking, a hostname (archaically nodename) is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication, such as the World Wide Web. Hos ...
or
IP address An Internet Protocol address (IP address) is a numerical label such as that is connected to a computer network that uses the Internet Protocol for communication.. Updated by . An IP address serves two main functions: network interface ident ...
. In an
IPv6 address An Internet Protocol Version 6 address (IPv6 address) is a numeric label that is used to identify and locate a network interface of a computer or a network node participating in a computer network using IPv6. IP addresses are included in the ...
colons (and one optional double colon) separate up to 8 groups of 16
bit The bit is the most basic unit of information in computing and digital communications. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represente ...
s in
hexadecimal In mathematics and computing, the hexadecimal (also base-16 or simply hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Unlike the decimal system representing numbers using 10 symbols, hexa ...
representation. In a URL a colon follows the initial scheme name (such as
HTTP The Hypertext Transfer Protocol (HTTP) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, ...
and
FTP The File Transfer Protocol (FTP) is a standard communication protocol used for the transfer of computer files from a server to a client on a computer network. FTP is built on a client–server model architecture using separate control and data ...
), and separates a
port number In computer networking, a port is a number assigned to uniquely identify a connection endpoint and to direct data to a specific service. At the software level, within an operating system, a port is a logical construct that identifies a specific ...
from the
hostname In computer networking, a hostname (archaically nodename) is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication, such as the World Wide Web. Hos ...
or
IP address An Internet Protocol address (IP address) is a numerical label such as that is connected to a computer network that uses the Internet Protocol for communication.. Updated by . An IP address serves two main functions: network interface ident ...
. In
Microsoft Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
filename A filename or file name is a name used to uniquely identify a computer file in a directory structure. Different file systems impose different restrictions on filename lengths. A filename may (depending on the file system) include: * name &ndas ...
s, the colon is reserved for use in
alternate data streams New Technology File System (NTFS) is a proprietary journaling file system developed by Microsoft. Starting with Windows NT 3.1, it is the default file system of the Windows NT family. It superseded File Allocation Table (FAT) as the preferred file ...
and cannot appear in a filename. It was used as the directory separator in
Classic Mac OS Mac OS (originally System Software; retronym: Classic Mac OS) is the series of operating systems developed for the Macintosh family of personal computers by Apple Computer from 1984 to 2001, starting with System 1 and ending with Mac OS 9. The ...
, and was difficult to use in early versions of the newer
BSD The Berkeley Software Distribution or Berkeley Standard Distribution (BSD) is a discontinued operating system based on Research Unix, developed and distributed by the Computer Systems Research Group (CSRG) at the University of California, Berk ...
-based
macOS macOS (; previously OS X and originally Mac OS X) is a Unix operating system developed and marketed by Apple Inc. since 2001. It is the primary operating system for Apple's Mac computers. Within the market of desktop and lapt ...
due to code swapping the slash and colon to try to preserve this usage. In most systems it is often difficult to put a colon in a filename as the shell interprets it for other purposes.
CP/M CP/M, originally standing for Control Program/Monitor and later Control Program for Microcomputers, is a mass-market operating system created in 1974 for Intel 8080/ 85-based microcomputers by Gary Kildall of Digital Research, Inc. Initial ...
and early versions of
MSDOS MS-DOS ( ; acronym for Microsoft Disk Operating System, also known as Microsoft DOS) is an operating system for x86-based personal computers mostly developed by Microsoft. Collectively, MS-DOS, its rebranding as IBM PC DOS, and a few ope ...
required the colon after the names of devices, such as though this gradually disappeared except for disks (where it had to be between the disk name and the required path representation of the file as in C:\Windows\). This then migrated to use in
URLs A Uniform Resource Locator (URL), colloquially termed as a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identifie ...
.


Text markup

It is often used as a single post-fix delimiter, signifying a token keyword had immediately preceded it or the transition from one mode of character string interpretation to another related mode. Some applications, such as the widely used
MediaWiki MediaWiki is a free and open-source wiki software. It is used on Wikipedia and almost all other Wikimedia websites, including Wiktionary, Wikimedia Commons and Wikidata; these sites define a large part of the requirement set for MediaWiki ...
, utilize the colon as both a pre-fix and post-fix delimiter. In
wiki markup A wiki ( ) is an online hypertext publication collaboratively edited and managed by its own audience, using a web browser. A typical wiki contains multiple pages for the subjects or scope of the project, and could be either open to the pu ...
, the colon is often used to indent text. Common usage includes separating or marking comments in a discussion as replies, or to distinguish certain parts of a text. In human-readable text messages, a colon, or multiple colons, is sometimes used to denote an action (similar to how
asterisk The asterisk ( ), from Late Latin , from Ancient Greek , ''asteriskos'', "little star", is a typographical symbol. It is so called because it resembles a conventional image of a heraldic star. Computer scientists and mathematicians often voc ...
s are used) or to emote (for example, in
vBulletin vBulletin is a proprietary Internet forum software package sold by MH Sub I, LLC doing business as vBulletin (formerly Jelsoft Enterprises and vBulletin Solutions). It is written in PHP and uses a MariaDB or MySQL database server. Similar pro ...
). In the action denotation usage it has the inverse function of quotation marks, denoting actions where unmarked text is assumed to be dialogue. For example: :Tom: Pluto is so small; it should not be considered a planet. It is tiny! :Mark: Oh really? ::drops Pluto on Tom's head:: Still think it's small now? Colons may also be used for sounds, e.g., ::click::, though sounds can also be denoted by asterisks or other punctuation marks. Colons can also be used to represent eyes in
emoticon An emoticon (, , rarely , ), short for "emotion icon", also known simply as an emote, is a pictorial representation of a facial expression using Character (symbol), characters—usually punctuation marks, numbers, and letters—to express a ...
s.


See also

*
Semicolon The semicolon or semi-colon is a symbol commonly used as orthographic punctuation. In the English language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought. When a ...
() *
Two dots (disambiguation) The term two dots or double dot may refer to: Orthography * Colon (punctuation), the punctuation mark () * Two dots (diacritic), a mark used with a base letter to indicate that its pronunciation is somehow modified () ** Diaeresis (diacritic), ...


Notes


References


External links

*
Walden University Guides
Punctuation: Colons {{Authority control Punctuation Typographical symbols