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.
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.
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.
Ok, I came to some situation where using hyphen is better too -- when we grep for our code, if we grep for "image-box", then the programming code such as add_to_image_box
won't cluster up the results. As since it is more search engine friendly, I think it is a pretty good practice to use the form image-box
instead.