Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Both are valid URL characters and both have their pros and cons.</p> <p><strong>Pro dash</strong></p> <ul> <li><p><a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=76329" rel="nofollow noreferrer">Google recommends dashes</a>, and here is what Matt Cutts from Google has to say about <a href="http://www.mattcutts.com/blog/dashes-vs-underscores/" rel="nofollow noreferrer">Dashes vs. underscores</a>.</p> <blockquote> <p>If you have a url like word1-word2, that page can be returned for the searches word1, word2, and even “word1 word2″. That’s why I would always choose dashes instead of underscores.</p> </blockquote></li> <li>Dashes seem to be what major blogs do: <a href="http://www.huffingtonpost.com/" rel="nofollow noreferrer">The Huffington Post</a>, <a href="http://www.techcrunch.com/" rel="nofollow noreferrer">TechCrunch</a>, <a href="http://www.engadget.com/" rel="nofollow noreferrer">Engadget</a>, ...</li> <li><strike>Dashes seem to be what major CMS do.</strike><br/> <em>Not sure about that one anymore, can anyone comment?</em></li> <li>As mentioned by <a href="https://stackoverflow.com/questions/929329/whats-the-best-character-to-represent-blank-spaces-in-a-url/929341#929341">Kazar</a>, underscores can clash with the underlining of links.</li> <li>I find underscores awkward to type.</li> <li><a href="https://stackoverflow.com/questions/929329/whats-the-best-character-to-represent-blank-spaces-in-a-url/929526#929526">Rene Saarsoo</a> pointed out that dashes take less space than underscores in proportional fonts.</li> <li><a href="https://stackoverflow.com/questions/929329/whats-the-best-character-to-represent-blank-spaces-in-a-url/929429#929429">Ionut G. Stan</a> mentioned that <a href="http://en.wikipedia.org/wiki/Domain_name_system#Internationalized_domain_names" rel="nofollow noreferrer"> underscores are not allowed in hostnames</a>. If you strive for consistency you should opt for dashes.</li> </ul> <p><strong>Pro underscore</strong></p> <ul> <li>Dashes are not allowed in <a href="http://en.wikipedia.org/wiki/ISO_9660#File_and_directory_name_restrictions" rel="nofollow noreferrer"> ISO9660</a> file systems. This can be a problem if your content is also shipped on DVD or CD (e.g help files or eLearning content).</li> <li>In some languages (e.g. German) dashes can be word characters and are not generally considered word separators. </li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload