Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Colon (punctuation)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Addresses=== Internet URLs use the colon to separate the protocol (such as {{code|http:}}) from the [[hostname]] or [[IP address]].{{Ref RFC|3986|repeat=yes}} In an [[IPv6 address#Representation|IPv6 address]], colons (and one optional double colon) separate up to 8 groups of 16 [[bit]]s in [[hexadecimal]] representation.{{Ref RFC|4291}} In a [[URL]], a colon follows the initial scheme name (such as Hypertext Transfer Protocol ([[HTTP]]) and [[File Transfer Protocol]] (FTP), and separates a [[port number]] from the [[hostname]] or [[IP address]].{{Ref RFC|3986}} In [[Microsoft Windows]] [[filename]]s, the colon is reserved for use in [[fork (file system)#Microsoft|alternate data streams]] and cannot appear in a filename.<ref>{{cite web |url=https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/ffb795f3-027d-4a3c-997d-3085f2332f6f |title=[MS-FSCC]: 2.1.5 Pathname |website=Microsoft Docs |publisher=Microsoft |date=24 August 2020 |archive-date=22 October 2020 |archive-url=https://archive.today/20201022102028/https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/ffb795f3-027d-4a3c-997d-3085f2332f6f |url-status=live}}</ref> It was used as the directory separator in [[Classic Mac OS]], and was difficult to use in early versions of the newer [[BSD]]-based [[macOS]] 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]] and early versions of [[MSDOS]] required the colon after the names of devices, such as {{code|CON:}} though this gradually disappeared except for disks (where it had to be between the disk name and the required [[path (computing)|path representation]] of the file as in <code>C:\Windows\</code>). This then migrated to use in [[Uniform Resource Locator|URLs]].{{Ref RFC|3986|repeat=yes}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)