Contents
Can a hyphen be used in a filename?
Don’t start or end your filename with a space, period, hyphen, or underline. Keep your filenames to a reasonable length and be sure they are under 31 characters. Avoid using spaces and underscores; use a hyphen instead. This will also improve your search engine rankings.
Is hyphen the same as underscore?
Creating the “-” symbol on a U.S. keyboard To create a hyphen using a U.S. keyboard, press the hyphen key. It’s on the same key as the underscore ( _ ), to the right of the zero key. The hyphen is easier to use on the numeric keypad with math formulas.
How do you use a dash and hyphen in a sentence?
The dash is often used after an independent clause. The hyphen, on the other hand, is used to join two words together like yellow-green. It usually does not have a space between the words. Also, the dash tends to be slightly longer than the hyphen, and usually would have spaces before and after the symbol.
Can you use underscore in file names?
Avoid using spaces and underscores in file names.
Can you have a hyphen in a URL?
Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html . We recommend that you use hyphens – instead of underscores _ in your URLs.
What do you use a underscore for?
The underscore ( _ ) is also known as an understrike, underbar, or underline, and is a character that was originally on a typewriter keyboard and was used simply to underline words or numbers for emphasis. Today, the character is used to create visual spacing in a sequence of words where whitespace is not permitted.
How do I type an en dash?
If you have a numeric keyboard, hold down the Alt key and type 0151 for an em dash or 0150 for an en dash.
What is the purpose of underscore in file names?
On the web, spaces are typically replaced with “%20” in URLs, and some browsers will ‘throw away’ anything after a space. Use the underscore symbol (_) or dash (-) in between words to represent a space, or use CamelCase and omit spaces from your file names altogether.
Do you use hyphens instead of underscores in URLs?
Many other sites also recommend that you use hyphens (-) instead of underscores (_) in your URLs. While the avoidance of using spaces in your filenames used to be mostly a computer science issue, it has become a renewed concern as we continually work across platforms and on the web.
What can be affected by the use of an underscore?
All of these items can be affected (unpredictably) by your use of an underscore. Seems minor, but it’s these minor things that make a huge difference in the above items.
When to use underscores vs.spaces in a file?
The topic of spaces vs. dashes vs. underscores continues on with respect to how to use them (or not) when naming your files. We’d like to clarify the things that matter when making a choice – so you can avoid making a bad decision.
Is it better to change URLs to dashes or underscores?
If you have an existing website that’s already doing well, don’t make such a widespread change like converting from underscores to dashes. The potential problems from changing these URLs might be worse than the potential gains from having dashes rather than underscores in them.