Or is it just mainly a personal preference?
As a programmer I always use underscore, but have seen it as - and so I will have to conform to it working in that project.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I understand hyphens to be more SEO friendly for URLs. This may cary over in some odd case to CSS class and id names, although I can’t think of any particular instance off the top of my head.
Both are valid, I think it just breaks down to personal preference.