So I'm curious where the idea that URLs contain backslashes came from. It's a fairly regular occurrence at work that I'll tell someone to go to a certain URL and they'll ask "forward or back slash?" Some quick internet searching suggests that URLs can only contain forward slashes to differentiate them from file paths, which only use backslashes. However, I'm pretty sure most of the people who ask this question have never typed a file path into a command prompt. Does anyone know what computer systems might have caused the average user to believe they should use a backslash regularly?
"Does anyone know what computer systems might have caused the average user to believe they should use a backslash regularly?"
Yes, IBM-DOS, MS-DOS and Windows.
In reality I think it has nothing to do with OSs they may have used in the past; The average end-user doesn't know the difference and can never tell which one to use in which context, so they tend to always ask.
Also, regardless of the answer you give them, this is usually followed by "OK, which one/where is that on the keyboard?"
The short and obvious answer to the question is that Windows is using backslashes to separate file paths. I can see a couple of reasons for the confusion.
Firstly it may be that the prompt
C:\ is much more iconic than
http:// and so on, and therefore is what comes to mind first. It is also probably the case that most users have had to actively know where a file is located, but not the exact path of a URL. Thus, the backslash is, again, what first comes to mind.
Secondly, the word slash is ambiguous, in that (without context) it might refer to either a forward slash or a backslash.
Lastly I want to add that the claim "URLs can only contain forward slashes to differentiate them from file paths, which only use backslashes" is incorrect. Most non-Windows operating systems are using forward slashes as directory separators. But, Windows can do so as well. Even though the canonical path to a file is typically using backslashes, you can also for the most part use forward slashes instead of backslashes in path names. Try it out next time you get a chance.
The other short and obvious answer is that many radio and TV “journalists”, and some advertisements, use the term “backslash” when articulating URLs. I attribute this to the fact that radio and TV “journalists” are not rocket scientists, or even computer scientists, and an “Emperor’s new clothes” phenomenon takes hold – nobody wants to point out the fact that so many people have got it wrong.